mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
omxaudioenc: Don't forward EOS events immediately but let all other events be handled by the base class
Previously this logic was inversed, which did not make any sense at all.
This commit is contained in:
parent
064e4c628c
commit
766f5bd161
1 changed files with 3 additions and 3 deletions
|
@ -1005,7 +1005,7 @@ gst_omx_audio_enc_event (GstAudioEncoder * encoder, GstEvent * event)
|
|||
/* Don't send EOS buffer twice, this doesn't work */
|
||||
if (self->eos) {
|
||||
GST_DEBUG_OBJECT (self, "Component is already EOS");
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
self->eos = TRUE;
|
||||
|
||||
|
@ -1033,10 +1033,10 @@ gst_omx_audio_enc_event (GstAudioEncoder * encoder, GstEvent * event)
|
|||
|
||||
GST_AUDIO_ENCODER_STREAM_LOCK (self);
|
||||
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
Loading…
Reference in a new issue