mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-26 16:28:25 +00:00
audioencoder: store segment event as pending event to forego dropping it
This commit is contained in:
parent
aae64c40a8
commit
1a2863bf33
|
@ -1284,6 +1284,9 @@ gst_audio_encoder_sink_event_default (GstAudioEncoder * enc, GstEvent * event)
|
||||||
gst_audio_encoder_reset (enc, FALSE);
|
gst_audio_encoder_reset (enc, FALSE);
|
||||||
/* and follow along with segment */
|
/* and follow along with segment */
|
||||||
enc->segment = seg;
|
enc->segment = seg;
|
||||||
|
|
||||||
|
enc->priv->pending_events =
|
||||||
|
g_list_append (enc->priv->pending_events, event);
|
||||||
GST_AUDIO_ENCODER_STREAM_UNLOCK (enc);
|
GST_AUDIO_ENCODER_STREAM_UNLOCK (enc);
|
||||||
|
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue