mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
validate-scenario: Add logging for scenario lock taking/releasing
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/174>
This commit is contained in:
parent
1e8a0dac2a
commit
4080cd9749
1 changed files with 11 additions and 2 deletions
|
@ -76,8 +76,17 @@ GST_DEBUG_CATEGORY_STATIC (gst_validate_scenario_debug);
|
|||
|
||||
#define ACTION_EXPECTED_STREAM_QUARK g_quark_from_static_string ("ACTION_EXPECTED_STREAM_QUARK")
|
||||
|
||||
#define SCENARIO_LOCK(scenario) (g_mutex_lock(&scenario->priv->lock))
|
||||
#define SCENARIO_UNLOCK(scenario) (g_mutex_unlock(&scenario->priv->lock))
|
||||
#define SCENARIO_LOCK(scenario) G_STMT_START { \
|
||||
GST_LOG_OBJECT (scenario, "About to lock %p", &scenario->priv->lock); \
|
||||
g_mutex_lock(&scenario->priv->lock); \
|
||||
GST_LOG_OBJECT (scenario, "Acquired lock %p", &scenario->priv->lock); \
|
||||
} G_STMT_END
|
||||
|
||||
#define SCENARIO_UNLOCK(scenario) G_STMT_START { \
|
||||
GST_LOG_OBJECT (scenario, "About to unlock %p", &scenario->priv->lock); \
|
||||
g_mutex_unlock(&scenario->priv->lock); \
|
||||
GST_LOG_OBJECT (scenario, "unlocked %p", &scenario->priv->lock); \
|
||||
} G_STMT_END
|
||||
|
||||
#define DECLARE_AND_GET_PIPELINE(s,a) \
|
||||
GstElement * pipeline = gst_validate_scenario_get_pipeline (s); \
|
||||
|
|
Loading…
Reference in a new issue