audioencoder: store segment event as pending event to forego dropping it
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 5 Mar 2012 11:25:50 +0000 (12:25 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 5 Mar 2012 12:03:57 +0000 (13:03 +0100)
gst-libs/gst/audio/gstaudioencoder.c

index 13c523e66aa49cd3a9fff6b15d9b9c5612be3377..d93ce839ccd1c184bd0b7edcbaf8dfecb2093668 100644 (file)
@@ -1284,6 +1284,9 @@ gst_audio_encoder_sink_event_default (GstAudioEncoder * enc, GstEvent * event)
       gst_audio_encoder_reset (enc, FALSE);
       /* and follow along with segment */
       enc->segment = seg;
+
+      enc->priv->pending_events =
+          g_list_append (enc->priv->pending_events, event);
       GST_AUDIO_ENCODER_STREAM_UNLOCK (enc);
 
       res = TRUE;