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
This commit is contained in:
Wim Taymans 2002-06-04 21:01:10 +00:00
parent 49dd11fb6c
commit 9d4eee380a

View file

@ -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));
}
}
}