srtobject: fix mutex lock target

GstSRTObject is a structure that has an actual GstElement
which is extended to srt{src,sink}.
This commit is contained in:
J. Kim 2020-04-13 15:21:48 +09:00
parent 691fdb85c0
commit 04f3f4be4f

View file

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