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 2d12bb41701f5e05d3550233ed09cab1403be285..5b08cc75ff90d3e4c1c0f03359d7b30ee9125f2b 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;