diff options
author | orestisf <orestisf1993@gmail.com> | 2017-07-25 22:06:56 +0300 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2017-08-03 17:07:14 +0200 |
commit | 66703a7835e4177c93d46728eda63226e8be4d19 (patch) | |
tree | 369e1eb1c54c51026b9e0099662b96205e94b977 | |
parent | 1dd03ac2fdf97cd2d9d018a5bd6bc1808f623f7e (diff) |
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
-rw-r--r-- | gst/vaapi/gstvaapidecode.c | 2 | ||||
-rw-r--r-- | gst/vaapi/gstvaapidecode_props.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 0cc66f68..a0fd4b47 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -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; diff --git a/gst/vaapi/gstvaapidecode_props.c b/gst/vaapi/gstvaapidecode_props.c index 3bc634ad..e9287b42 100644 --- a/gst/vaapi/gstvaapidecode_props.c +++ b/gst/vaapi/gstvaapidecode_props.c @@ -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); |