mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
srtsrc: fix case fallthrough of authentication param
Add missing breaks to two case statements. Also adds a missing lock of srtobject->element when getting the value of PROP_AUTHENTICATION. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7273>
This commit is contained in:
parent
7bb940d6be
commit
5fa9e5b26c
1 changed files with 4 additions and 0 deletions
|
@ -426,6 +426,7 @@ gst_srt_object_set_property_helper (GstSRTObject * srtobject,
|
|||
break;
|
||||
case PROP_AUTHENTICATION:
|
||||
srtobject->authentication = g_value_get_boolean (value);
|
||||
break;
|
||||
case PROP_AUTO_RECONNECT:
|
||||
srtobject->auto_reconnect = g_value_get_boolean (value);
|
||||
break;
|
||||
|
@ -534,7 +535,10 @@ gst_srt_object_get_property_helper (GstSRTObject * srtobject,
|
|||
GST_OBJECT_UNLOCK (srtobject->element);
|
||||
break;
|
||||
case PROP_AUTHENTICATION:
|
||||
GST_OBJECT_LOCK (srtobject->element);
|
||||
g_value_set_boolean (value, srtobject->authentication);
|
||||
GST_OBJECT_UNLOCK (srtobject->element);
|
||||
break;
|
||||
case PROP_AUTO_RECONNECT:
|
||||
GST_OBJECT_LOCK (srtobject->element);
|
||||
g_value_set_boolean (value, srtobject->auto_reconnect);
|
||||
|
|
Loading…
Reference in a new issue