omxvideodec: Properly drop frames due to QoS
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 1 Dec 2011 15:20:36 +0000 (16:20 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 1 Dec 2011 15:20:36 +0000 (16:20 +0100)
Instead of finishing them they should be passed to drop(), which
will then send QoS messages.

omx/gstomxvideodec.c

index 07a278f..eb4c21c 100644 (file)
@@ -728,7 +728,7 @@ gst_omx_video_dec_loop (GstOMXVideoDec * self)
         "Frame is too late, dropping (deadline %" GST_TIME_FORMAT ")",
         GST_TIME_ARGS (-deadline));
     flow_ret =
-        gst_base_video_decoder_finish_frame (GST_BASE_VIDEO_DECODER (self),
+        gst_base_video_decoder_drop_frame (GST_BASE_VIDEO_DECODER (self),
         frame);
   } else if (!frame && buf->omx_buf->nFilledLen > 0) {
     GstBuffer *outbuf;