audiodecoder: forward stream-start immediately
authorWim Taymans <wim.taymans@collabora.co.uk>
Sat, 30 Mar 2013 18:07:05 +0000 (19:07 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Sat, 30 Mar 2013 18:14:37 +0000 (19:14 +0100)
gst-libs/gst/audio/gstaudiodecoder.c

index af888df..9901d0c 100644 (file)
@@ -1650,6 +1650,13 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event)
   gboolean ret;
 
   switch (GST_EVENT_TYPE (event)) {
+    case GST_EVENT_STREAM_START:
+      GST_AUDIO_DECODER_STREAM_LOCK (dec);
+      gst_audio_decoder_drain (dec);
+      GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
+
+      ret = gst_audio_decoder_push_event (dec, event);
+      break;
     case GST_EVENT_SEGMENT:
     {
       GstSegment seg;