mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
Changed GST_DEBUG in signal_thread and wait_thread to reveal more info
Original commit message from CVS: Changed GST_DEBUG in signal_thread and wait_thread to reveal more info
This commit is contained in:
parent
954f21acf6
commit
be811977bf
1 changed files with 3 additions and 2 deletions
|
@ -378,7 +378,7 @@ gst_thread_main_loop (void *arg)
|
||||||
static void
|
static void
|
||||||
gst_thread_signal_thread (GstThread *thread, guint syncflag, gboolean set)
|
gst_thread_signal_thread (GstThread *thread, guint syncflag, gboolean set)
|
||||||
{
|
{
|
||||||
GST_DEBUG (0,"sync: signaling thread\n");
|
GST_DEBUG (0,"sync: signaling thread setting %u to %d\n",synflag,set);
|
||||||
g_mutex_lock (thread->lock);
|
g_mutex_lock (thread->lock);
|
||||||
if (set)
|
if (set)
|
||||||
GST_FLAG_SET(thread,syncflag);
|
GST_FLAG_SET(thread,syncflag);
|
||||||
|
@ -394,7 +394,8 @@ static void
|
||||||
gst_thread_wait_thread (GstThread *thread, guint syncflag, gboolean set)
|
gst_thread_wait_thread (GstThread *thread, guint syncflag, gboolean set)
|
||||||
{
|
{
|
||||||
// if (!thread->signaling) {
|
// if (!thread->signaling) {
|
||||||
GST_DEBUG (0,"sync: waiting for thread\n");
|
GST_DEBUG (0,"sync: waiting for thread for %u to be set %d\n",
|
||||||
|
syncflag,set);
|
||||||
g_mutex_lock (thread->lock);
|
g_mutex_lock (thread->lock);
|
||||||
if (GST_FLAG_IS_SET(thread,syncflag)!=set) {
|
if (GST_FLAG_IS_SET(thread,syncflag)!=set) {
|
||||||
g_cond_wait (thread->cond, thread->lock);
|
g_cond_wait (thread->cond, thread->lock);
|
||||||
|
|
Loading…
Reference in a new issue