From 9d4eee380ab28130188fe06d3505b1392ee29e13 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 4 Jun 2002 21:01:10 +0000 Subject: [PATCH] Fix a little typo, unlock the peer element if it's decoupled instead of our own element Original commit message from CVS: Fix a little typo, unlock the peer element if it's decoupled instead of our own element --- gst/gstthread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/gstthread.c b/gst/gstthread.c index 555a7463f4..100172285f 100644 --- a/gst/gstthread.c +++ b/gst/gstthread.c @@ -363,8 +363,9 @@ gst_thread_change_state (GstElement * element) if (GST_ELEMENT_SCHED (peerelement) != GST_ELEMENT_SCHED (thread)) { THR_DEBUG (" element \"%s\" has pad cross sched boundary", GST_ELEMENT_NAME (element)); - if (!gst_element_release_locks (element)) { - g_warning ("element %s could not release locks", GST_ELEMENT_NAME (element)); + THR_DEBUG (" waking element \"%s\"", GST_ELEMENT_NAME (peerelement)); + if (!gst_element_release_locks (peerelement)) { + g_warning ("element %s could not release locks", GST_ELEMENT_NAME (peerelement)); } } }