mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
inputselector: Move locking and signalling macros from the header to the source file
This commit is contained in:
parent
02d27de048
commit
d41fe48ce3
1 changed files with 8 additions and 0 deletions
|
@ -70,6 +70,14 @@ static GStaticRecMutex notify_mutex = G_STATIC_REC_MUTEX_INIT;
|
||||||
#define NOTIFY_MUTEX_UNLOCK() g_static_rec_mutex_unlock (¬ify_mutex)
|
#define NOTIFY_MUTEX_UNLOCK() g_static_rec_mutex_unlock (¬ify_mutex)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define GST_INPUT_SELECTOR_GET_LOCK(sel) (((GstInputSelector*)(sel))->lock)
|
||||||
|
#define GST_INPUT_SELECTOR_GET_COND(sel) (((GstInputSelector*)(sel))->cond)
|
||||||
|
#define GST_INPUT_SELECTOR_LOCK(sel) (g_mutex_lock (GST_INPUT_SELECTOR_GET_LOCK(sel)))
|
||||||
|
#define GST_INPUT_SELECTOR_UNLOCK(sel) (g_mutex_unlock (GST_INPUT_SELECTOR_GET_LOCK(sel)))
|
||||||
|
#define GST_INPUT_SELECTOR_WAIT(sel) (g_cond_wait (GST_INPUT_SELECTOR_GET_COND(sel), \
|
||||||
|
GST_INPUT_SELECTOR_GET_LOCK(sel)))
|
||||||
|
#define GST_INPUT_SELECTOR_BROADCAST(sel) (g_cond_broadcast (GST_INPUT_SELECTOR_GET_COND(sel)))
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_input_selector_sink_factory =
|
static GstStaticPadTemplate gst_input_selector_sink_factory =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink%d",
|
GST_STATIC_PAD_TEMPLATE ("sink%d",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
|
|
Loading…
Reference in a new issue