summaryrefslogtreecommitdiff
path: root/sys/v4l2codecs/gstv4l2codecvp8dec.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2020-05-05 17:55:19 -0400
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-05-19 17:51:11 +0000
commit037730a787c6cdeeee5779c1834315c1ca764505 (patch)
tree63f18dfeec4197076bdb42064fbe25676975783e /sys/v4l2codecs/gstv4l2codecvp8dec.c
parent661f0c161e72f722c8e425fb198cb0b6d559e241 (diff)
downloadgstreamer-plugins-bad-037730a787c6cdeeee5779c1834315c1ca764505.tar.gz
v4l2slh264dec: Add slice based decoder support
This adds support for slice based decoder like the Allwinner/Cedrus driver. In order to keep things efficient, we hold the sink buffer until we reach the end of the picture. Note that as we don't know which one is last, we lazy queue the slices. This effectively introduces one slice latency. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1268>
Diffstat (limited to 'sys/v4l2codecs/gstv4l2codecvp8dec.c')
-rw-r--r--sys/v4l2codecs/gstv4l2codecvp8dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l2codecs/gstv4l2codecvp8dec.c b/sys/v4l2codecs/gstv4l2codecvp8dec.c
index 012f087cd..20487450b 100644
--- a/sys/v4l2codecs/gstv4l2codecvp8dec.c
+++ b/sys/v4l2codecs/gstv4l2codecvp8dec.c
@@ -579,7 +579,7 @@ gst_v4l2_codec_vp8_dec_end_picture (GstVp8Decoder * decoder,
self->bitstream_map = (GstMapInfo) GST_MAP_INFO_INIT;
if (!gst_v4l2_decoder_queue_sink_mem (self->decoder, request, self->bitstream,
- picture->system_frame_number, bytesused)) {
+ picture->system_frame_number, bytesused, 0)) {
GST_ELEMENT_ERROR (decoder, RESOURCE, WRITE,
("Driver did not accept the bitstream data."), (NULL));
goto fail;