srtobject: fix mutex lock target
authorJ. Kim <jeongseok.kim@sk.com>
Mon, 13 Apr 2020 06:21:48 +0000 (15:21 +0900)
committerJ. Kim <jeongseok.kim@sk.com>
Mon, 13 Apr 2020 06:23:46 +0000 (15:23 +0900)
GstSRTObject is a structure that has an actual GstElement
which is extended to srt{src,sink}.

ext/srt/gstsrtobject.c

index 2d12bb4..5b08cc7 100644 (file)
@@ -283,9 +283,9 @@ gst_srt_object_set_property_helper (GstSRTObject * srtobject,
       gst_structure_set_value (srtobject->parameters, "pbkeylen", value);
       break;
     case PROP_WAIT_FOR_CONNECTION:
-      GST_OBJECT_LOCK (srtobject);
+      GST_OBJECT_LOCK (srtobject->element);
       srtobject->wait_for_connection = g_value_get_boolean (value);
-      GST_OBJECT_UNLOCK (srtobject);
+      GST_OBJECT_UNLOCK (srtobject->element);
       break;
     default:
       return FALSE;