The event will be forwarded downstream from the srcpad
loop function after the last buffer was generated by the
component. Forwarding it after ::finish() will use the
sinkpad streaming thread and does not guarantee that
the encoder is completely drained.
}
}
-static gboolean
+static GstFlowReturn
gst_omx_video_enc_finish (GstBaseVideoEncoder * encoder)
{
GstOMXVideoEnc *self;
/* Don't send EOS buffer twice, this doesn't work */
if (self->eos) {
GST_DEBUG_OBJECT (self, "Component is already EOS");
- return TRUE;
+ return GST_BASE_VIDEO_ENCODER_FLOW_DROPPED;
}
self->eos = TRUE;
GST_BASE_VIDEO_CODEC_STREAM_LOCK (self);
- return TRUE;
+ return GST_BASE_VIDEO_ENCODER_FLOW_DROPPED;
}
static GstFlowReturn