vaapiconvert: protect access to direct_rendering.

This commit is contained in:
Gwenole Beauchesne 2011-09-05 17:23:05 +02:00
parent dcf44d0809
commit f601d133cc

View file

@ -197,7 +197,9 @@ gst_vaapiconvert_set_property(
switch (prop_id) {
case PROP_DIRECT_RENDERING:
GST_OBJECT_LOCK(convert);
convert->direct_rendering = g_value_get_uint(value);
GST_OBJECT_UNLOCK(convert);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);