mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
audioencoder: store segment event as pending event to forego dropping it
This commit is contained in:
parent
aae64c40a8
commit
1a2863bf33
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue