vaapidecode: set h264 base-only to decoder

Set the base-only value when property is set and the internal
decoder is already instantiated or when the internal decoder
is created.

https://bugzilla.gnome.org/show_bug.cgi?id=732265
This commit is contained in:
orestisf 2017-07-25 22:06:56 +03:00 committed by Víctor Manuel Jáquez Leal
parent 1dd03ac2fd
commit 66703a7835
2 changed files with 5 additions and 0 deletions

View file

@ -872,6 +872,8 @@ gst_vaapidecode_create (GstVaapiDecode * decode, GstCaps * caps)
if (priv) {
gst_vaapi_decoder_h264_set_low_latency (GST_VAAPI_DECODER_H264
(decode->decoder), priv->is_low_latency);
gst_vaapi_decoder_h264_set_base_only (GST_VAAPI_DECODER_H264
(decode->decoder), priv->base_only);
}
}
break;

View file

@ -73,6 +73,9 @@ gst_vaapi_decode_h264_set_property (GObject * object, guint prop_id,
break;
case GST_VAAPI_DECODER_H264_PROP_BASE_ONLY:
priv->base_only = g_value_get_boolean (value);
decoder = GST_VAAPI_DECODER_H264 (GST_VAAPIDECODE (object)->decoder);
if (decoder)
gst_vaapi_decoder_h264_set_base_only (decoder, priv->base_only);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);