summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-07-06 20:00:15 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-07-07 19:32:11 +0200
commit551ae940a780788752e41346eed9f5071c569bd2 (patch)
tree9aa807beae3a69e3a135031a956b7365724b87b1
parent28d1d048a603082b5acf50c0d59ecfd039b46a6d (diff)
vaapidecode: set h264 low latency to decoder
https://bugzilla.gnome.org/show_bug.cgi?id=783588
-rw-r--r--gst/vaapi/gstvaapidecode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c
index 946e084a..0cc66f68 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