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:
Sebastian Dröge 2011-12-06 13:28:41 +01:00
parent 064e4c628c
commit 766f5bd161

View file

@ -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