sys/: When the atom is not available we have to unlock the mutex. Fixes #148023
authorJulien Moutte <julien@moutte.net>
Tue, 27 Jul 2004 09:35:52 +0000 (09:35 +0000)
committerJulien Moutte <julien@moutte.net>
Tue, 27 Jul 2004 09:35:52 +0000 (09:35 +0000)
Original commit message from CVS:
2004-07-27  Julien MOUTTE  <julien@moutte.net>

* sys/ximage/ximagesink.c: (gst_ximagesink_xwindow_decorate):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_xwindow_decorate): When
the atom is not available we have to unlock the mutex. Fixes #148023

ChangeLog
sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c

index 2a76e66..0b81485 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-07-27  Julien MOUTTE  <julien@moutte.net>
+
+       * sys/ximage/ximagesink.c: (gst_ximagesink_xwindow_decorate):
+       * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xwindow_decorate): When
+       the atom is not available we have to unlock the mutex. Fixes #148023
+
 2004-07-26  Steve Lhomme  <steve.lhomme@free.fr>
 
        * gst-libs/gst/media-info/media-info.h:
index ee03feb..dc8bc3a 100644 (file)
@@ -320,6 +320,7 @@ gst_ximagesink_xwindow_decorate (GstXImageSink * ximagesink,
 
   hints_atom = XInternAtom (ximagesink->xcontext->disp, "_MOTIF_WM_HINTS", 1);
   if (hints_atom == None) {
+    g_mutex_unlock (ximagesink->x_lock);
     return FALSE;
   }
 
index a27488c..82183c4 100644 (file)
@@ -339,6 +339,7 @@ gst_xvimagesink_xwindow_decorate (GstXvImageSink * xvimagesink,
 
   hints_atom = XInternAtom (xvimagesink->xcontext->disp, "_MOTIF_WM_HINTS", 1);
   if (hints_atom == None) {
+    g_mutex_unlock (xvimagesink->x_lock);
     return FALSE;
   }