mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 22:21:13 +00:00
omxaudioenc: Always flush the ports and make sure no processing is happening in ::flush
This fixes a race condition that happened when seeking very often in a short period of time.
This commit is contained in:
parent
fbe171ee2c
commit
b62ffe1ada
1 changed files with 8 additions and 10 deletions
|
@ -806,7 +806,6 @@ gst_omx_audio_enc_flush (GstBaseAudioEncoder * encoder)
|
|||
|
||||
GST_DEBUG_OBJECT (self, "Resetting encoder");
|
||||
|
||||
if (self->started) {
|
||||
gst_omx_audio_enc_drain (self);
|
||||
|
||||
gst_omx_port_set_flushing (self->in_port, TRUE);
|
||||
|
@ -818,7 +817,6 @@ gst_omx_audio_enc_flush (GstBaseAudioEncoder * encoder)
|
|||
|
||||
gst_omx_port_set_flushing (self->in_port, FALSE);
|
||||
gst_omx_port_set_flushing (self->out_port, FALSE);
|
||||
}
|
||||
|
||||
/* Start the srcpad loop again */
|
||||
self->downstream_flow_ret = GST_FLOW_OK;
|
||||
|
|
Loading…
Reference in a new issue