From d9f3d3560e0ee7454c1b970b178909c3c7c43912 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 22 Jul 2013 12:06:29 +0200 Subject: [PATCH] typefind: Use new group-id in stream-start event --- plugins/elements/gsttypefindelement.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index ebbb6e7..ba1bd57 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -989,12 +989,15 @@ gst_type_find_element_loop (GstPad * pad) if (typefind->need_stream_start) { gchar *stream_id; + GstEvent *event; stream_id = gst_pad_create_stream_id (typefind->src, GST_ELEMENT_CAST (typefind), NULL); GST_DEBUG_OBJECT (typefind, "Pushing STREAM_START"); - gst_pad_push_event (typefind->src, gst_event_new_stream_start (stream_id)); + event = gst_event_new_stream_start (stream_id); + gst_event_set_group_id (event, gst_util_group_id_next ()); + gst_pad_push_event (typefind->src, event); typefind->need_stream_start = FALSE; g_free (stream_id); -- 2.7.4