vaapiconvert: protect access to direct_rendering.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 5 Sep 2011 15:23:05 +0000 (17:23 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 6 Sep 2011 16:37:11 +0000 (18:37 +0200)
gst/vaapiconvert/gstvaapiconvert.c

index b462591..c258a2a 100644 (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);