mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
vaapiconvert: protect access to direct_rendering.
This commit is contained in:
parent
dcf44d0809
commit
f601d133cc
1 changed files with 2 additions and 0 deletions
|
@ -197,7 +197,9 @@ gst_vaapiconvert_set_property(
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_DIRECT_RENDERING:
|
case PROP_DIRECT_RENDERING:
|
||||||
|
GST_OBJECT_LOCK(convert);
|
||||||
convert->direct_rendering = g_value_get_uint(value);
|
convert->direct_rendering = g_value_get_uint(value);
|
||||||
|
GST_OBJECT_UNLOCK(convert);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
|
||||||
|
|
Loading…
Reference in a new issue