From 551ae940a780788752e41346eed9f5071c569bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 6 Jul 2017 20:00:15 +0200 Subject: [PATCH] vaapidecode: set h264 low latency to decoder https://bugzilla.gnome.org/show_bug.cgi?id=783588 --- gst/vaapi/gstvaapidecode.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 946e084a47..0cc66f68f1 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -852,6 +852,8 @@ gst_vaapidecode_create (GstVaapiDecode * decode, GstCaps * caps) /* Set the stream buffer alignment for better optimizations */ if (decode->decoder && caps) { + GstVaapiDecodeH264Private *priv = + gst_vaapi_decode_h264_get_instance_private (decode); GstStructure *const structure = gst_caps_get_structure (caps, 0); const gchar *str = NULL; @@ -866,6 +868,11 @@ gst_vaapidecode_create (GstVaapiDecode * decode, GstCaps * caps) gst_vaapi_decoder_h264_set_alignment (GST_VAAPI_DECODER_H264 (decode->decoder), alignment); } + + if (priv) { + gst_vaapi_decoder_h264_set_low_latency (GST_VAAPI_DECODER_H264 + (decode->decoder), priv->is_low_latency); + } } break; #if USE_H265_DECODER