summaryrefslogtreecommitdiffstats
path: root/tests/check/elements
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-01-23 10:34:40 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-01-23 10:34:40 +0000
commitafa31cfea03063a848ba4db5aa03001301839aa2 (patch)
treea2aabe70dff5cfe05fb056c6251da88143ec05fb /tests/check/elements
parent960b1c5b08839e6e2727ae5fcad3c00be1916583 (diff)
downloadgst-plugins-bad-afa31cfea03063a848ba4db5aa03001301839aa2.tar.gz
gst-plugins-bad-afa31cfea03063a848ba4db5aa03001301839aa2.tar.bz2
gst-plugins-bad-afa31cfea03063a848ba4db5aa03001301839aa2.zip
Add documentation for the xingheader plugin.
Original commit message from CVS: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-bad-plugins-docs.sgml: * docs/plugins/gst-plugins-bad-plugins-sections.txt: * gst/xingheader/gstxingmux.c: * gst/xingheader/gstxingmux.h: Add documentation for the xingheader plugin. * tests/check/elements/xingmux.c: (GST_START_TEST): Set element state to PLAYING before doing something else.
Diffstat (limited to 'tests/check/elements')
-rw-r--r--tests/check/elements/xingmux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/check/elements/xingmux.c b/tests/check/elements/xingmux.c
index 05713531..52f27ceb 100644
--- a/tests/check/elements/xingmux.c
+++ b/tests/check/elements/xingmux.c
@@ -80,20 +80,20 @@ GST_START_TEST (test_xing_remux)
GstElement *xingmux;
GstBuffer *inbuffer;
GList *it;
- guint8 *verify_data;
+ const guint8 *verify_data;
xingmux = setup_xingmux ();
+ fail_unless (gst_element_set_state (xingmux,
+ GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
+ "could not set to playing");
+
inbuffer = gst_buffer_new_and_alloc (sizeof (test_xing));
memcpy (GST_BUFFER_DATA (inbuffer), test_xing, sizeof (test_xing));
gst_buffer_set_caps (inbuffer, GST_PAD_CAPS (mysrcpad));
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
-
- /* FIXME: why are the xingmux pads flushing? */
- fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_flush_stop ()));
-
/* pushing gives away my reference ... */
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));