omxaudioenc: Don't forward EOS events immediately but let all other events be handled...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Dec 2011 12:28:41 +0000 (13:28 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Dec 2011 12:28:41 +0000 (13:28 +0100)
Previously this logic was inversed, which did not make any sense at all.

omx/gstomxaudioenc.c

index 04f6646..4fb7811 100644 (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