streamsynchronizer: reduce debug log spam a bit

Log locking/unlocking with TRACE debug level.
This commit is contained in:
Tim-Philipp Müller 2012-11-25 18:07:04 +00:00
parent 5237692de6
commit 601aabdf9c

View file

@ -27,17 +27,17 @@ GST_DEBUG_CATEGORY_STATIC (stream_synchronizer_debug);
#define GST_CAT_DEFAULT stream_synchronizer_debug #define GST_CAT_DEFAULT stream_synchronizer_debug
#define GST_STREAM_SYNCHRONIZER_LOCK(obj) G_STMT_START { \ #define GST_STREAM_SYNCHRONIZER_LOCK(obj) G_STMT_START { \
GST_LOG_OBJECT (obj, \ GST_TRACE_OBJECT (obj, \
"locking from thread %p", \ "locking from thread %p", \
g_thread_self ()); \ g_thread_self ()); \
g_mutex_lock (&GST_STREAM_SYNCHRONIZER_CAST(obj)->lock); \ g_mutex_lock (&GST_STREAM_SYNCHRONIZER_CAST(obj)->lock); \
GST_LOG_OBJECT (obj, \ GST_TRACE_OBJECT (obj, \
"locked from thread %p", \ "locked from thread %p", \
g_thread_self ()); \ g_thread_self ()); \
} G_STMT_END } G_STMT_END
#define GST_STREAM_SYNCHRONIZER_UNLOCK(obj) G_STMT_START { \ #define GST_STREAM_SYNCHRONIZER_UNLOCK(obj) G_STMT_START { \
GST_LOG_OBJECT (obj, \ GST_TRACE_OBJECT (obj, \
"unlocking from thread %p", \ "unlocking from thread %p", \
g_thread_self ()); \ g_thread_self ()); \
g_mutex_unlock (&GST_STREAM_SYNCHRONIZER_CAST(obj)->lock); \ g_mutex_unlock (&GST_STREAM_SYNCHRONIZER_CAST(obj)->lock); \