diff options
Diffstat (limited to 'gst/switch/gstswitch.h')
-rw-r--r-- | gst/switch/gstswitch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/switch/gstswitch.h b/gst/switch/gstswitch.h index e7a0ed86..c9ca0ec0 100644 --- a/gst/switch/gstswitch.h +++ b/gst/switch/gstswitch.h @@ -66,8 +66,12 @@ struct _GstSwitch { * new segment has been sent */ GHashTable *stored_buffers; + GMutex *switch_mutex; }; +#define GST_SWITCH_LOCK(obj) g_mutex_lock(obj->switch_mutex) +#define GST_SWITCH_UNLOCK(obj) g_mutex_unlock(obj->switch_mutex) + struct _GstSwitchClass { GstElementClass parent_class; }; |