From: Stefan Sauer Date: Tue, 11 Mar 2014 21:36:01 +0000 (+0100) Subject: audiomixer: set a group-id on the stream-start event X-Git-Tag: 1.19.3~507^2~12542 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a1add634c81ee373719d6b43db76127a831e809;p=platform%2Fupstream%2Fgstreamer.git audiomixer: set a group-id on the stream-start event Set a default group-id to fix a warning printed by the sink. --- diff --git a/gst/audiomixer/gstaudiomixer.c b/gst/audiomixer/gstaudiomixer.c index f604ce7..cf3f707 100644 --- a/gst/audiomixer/gstaudiomixer.c +++ b/gst/audiomixer/gstaudiomixer.c @@ -1635,12 +1635,17 @@ gst_audiomixer_collected (GstCollectPads * pads, gpointer user_data) if (audiomixer->send_stream_start) { gchar s_id[32]; + GstEvent *event; GST_INFO_OBJECT (audiomixer->srcpad, "send pending stream start event"); - /* stream-start (FIXME: create id based on input ids) */ + /* FIXME: create id based on input ids, we can't use + * gst_pad_create_stream_id() though as that only handles 0..1 sink-pad + */ g_snprintf (s_id, sizeof (s_id), "audiomixer-%08x", g_random_int ()); - if (!gst_pad_push_event (audiomixer->srcpad, - gst_event_new_stream_start (s_id))) { + event = gst_event_new_stream_start (s_id); + gst_event_set_group_id (event, gst_util_group_id_next ()); + + if (!gst_pad_push_event (audiomixer->srcpad, event)) { GST_WARNING_OBJECT (audiomixer->srcpad, "Sending stream start event failed"); }