summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-05-02 15:40:15 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-05-02 15:40:15 +0000
commit5c1e2a1e4458654d01fd5f77ab0c977d2f356e86 (patch)
treed5e8991efa7eb98aca203eb7addfc4d5d4a029e3 /tests
parent7df5ab1bf288e8648c5e2be8b80517783e69de5a (diff)
gst/: Post an error message when we get an EOS event and were not able to find out the type of stream.
Original commit message from CVS: * gst/apetag/gsttagdemux.c: (gst_tag_demux_init), (gst_tag_demux_sink_event): * gst/id3demux/gstid3demux.c: (gst_id3demux_init), (gst_id3demux_sink_event): Post an error message when we get an EOS event and were not able to find out the type of stream. * tests/check/elements/id3v2mux.c: (fill_mp3_buffer), (got_buffer), (test_taglib_id3mux_with_tags): Decrease num-buffers to 16 per iteration again, otherwise the many memcpy()s and reallocations in the test will hammer slow CPUs completely and make the test timeout.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/id3v2mux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check/elements/id3v2mux.c b/tests/check/elements/id3v2mux.c
index 1b6ecfe6..f8024350 100644
--- a/tests/check/elements/id3v2mux.c
+++ b/tests/check/elements/id3v2mux.c
@@ -171,7 +171,7 @@ fill_mp3_buffer (GstElement * fakesrc, GstBuffer * buf, GstPad * pad,
{
GstCaps *caps;
- g_assert (GST_BUFFER_SIZE (buf) == MP3_FRAME_SIZE);
+ fail_unless (GST_BUFFER_SIZE (buf) == MP3_FRAME_SIZE);
GST_LOG ("filling buffer with fake mp3 data, offset = %" G_GUINT64_FORMAT,
*p_offset);
@@ -294,7 +294,7 @@ test_taglib_id3mux_with_tags (GstTagList * tags, guint32 mask)
/* set up source */
g_object_set (fakesrc, "signal-handoffs", TRUE, "can-activate-pull", FALSE,
"filltype", 2, "sizetype", 2, "sizemax", MP3_FRAME_SIZE,
- "num-buffers", 256, NULL);
+ "num-buffers", 16, NULL);
offset = 0;
g_signal_connect (fakesrc, "handoff", G_CALLBACK (fill_mp3_buffer), &offset);