mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
API: get MPRIS with a lock
Otherwise it is not thread safe
This commit is contained in:
2
lib/gst/clapper/gstclapper.c
vendored
2
lib/gst/clapper/gstclapper.c
vendored
@@ -757,7 +757,9 @@ gst_clapper_get_property (GObject * object, guint prop_id,
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_MPRIS:
|
||||
g_mutex_lock (&self->lock);
|
||||
g_value_set_object (value, self->mpris);
|
||||
g_mutex_unlock (&self->lock);
|
||||
break;
|
||||
case PROP_STATE:
|
||||
g_mutex_lock (&self->lock);
|
||||
|
Reference in New Issue
Block a user