diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-03-01 15:16:55 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-03-05 13:50:08 -0500 |
commit | fb455242e9320e46ce19e65b53f51fe43fbe2b82 (patch) | |
tree | 750331c4e6fef1ebc321b506457096f79f227a7c | |
parent | 32660fd2941499e54bd177e56039b58c34a7a670 (diff) | |
download | gst-omx-fb455242e9320e46ce19e65b53f51fe43fbe2b82.tar.gz |
omxvideodec: Don't drop the frame on empty payload
This otherwise may lead to "No reference frame found" warning.
-rw-r--r-- | omx/gstomxvideodec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 76714ab..1b4207f 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -1788,7 +1788,9 @@ gst_omx_video_dec_loop (GstOMXVideoDec * self) } } } else if (frame != NULL) { - flow_ret = gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame); + /* Just ignore empty buffers, don't drop a frame for that */ + flow_ret = GST_FLOW_OK; + gst_video_codec_frame_unref (frame); frame = NULL; } |