mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
repositioning of debug after mutex in wait_thread and signal_thread
Original commit message from CVS: repositioning of debug after mutex in wait_thread and signal_thread
This commit is contained in:
parent
93cca29397
commit
8fc64053fc
1 changed files with 2 additions and 2 deletions
|
@ -378,8 +378,8 @@ 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 setting %u to %d\n",syncflag,set);
|
|
||||||
g_mutex_lock (thread->lock);
|
g_mutex_lock (thread->lock);
|
||||||
|
GST_DEBUG (0,"sync: signaling thread setting %u to %d\n",syncflag,set);
|
||||||
if (set)
|
if (set)
|
||||||
GST_FLAG_SET(thread,syncflag);
|
GST_FLAG_SET(thread,syncflag);
|
||||||
else
|
else
|
||||||
|
@ -394,9 +394,9 @@ 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) {
|
||||||
|
g_mutex_lock (thread->lock);
|
||||||
GST_DEBUG (0,"sync: waiting for thread for %u to be set %d\n",
|
GST_DEBUG (0,"sync: waiting for thread for %u to be set %d\n",
|
||||||
syncflag,set);
|
syncflag,set);
|
||||||
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