diff options
Diffstat (limited to 'tests/check/gst/gstpad.c')
-rw-r--r-- | tests/check/gst/gstpad.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/check/gst/gstpad.c b/tests/check/gst/gstpad.c index 61275f46ee..2a6d3488a9 100644 --- a/tests/check/gst/gstpad.c +++ b/tests/check/gst/gstpad.c @@ -1479,15 +1479,24 @@ GST_START_TEST (test_sticky_events) GstPad *srcpad, *sinkpad; GstCaps *caps; GstSegment seg; + gchar *id; /* make unlinked srcpad */ srcpad = gst_pad_new ("src", GST_PAD_SRC); fail_unless (srcpad != NULL); gst_pad_set_active (srcpad, TRUE); + /* test stream-start */ + fail_unless (gst_pad_get_stream_id (srcpad) == NULL); + /* push an event, it should be sticky on the srcpad */ gst_pad_push_event (srcpad, gst_event_new_stream_start ("test")); + /* let's see if it stuck */ + id = gst_pad_get_stream_id (srcpad); + fail_unless_equals_string (id, "test"); + g_free (id); + /* make a caps event */ caps = gst_caps_new_empty_simple ("foo/bar"); gst_pad_push_event (srcpad, gst_event_new_caps (caps)); |