sys/: Fix a locking-order bug I introduced with my changes the other day.
authorMike Smith <msmith@xiph.org>
Mon, 21 May 2007 15:32:42 +0000 (15:32 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Mon, 21 May 2007 15:32:42 +0000 (15:32 +0000)
Original commit message from CVS:
* sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents):
Fix a locking-order bug I introduced with my changes the other day.
Patch by Mike Smith.

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

index 6afc74a..23ec475 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-21  Jan Schmidt  <thaytan@mad.scientist.com>
+
+       * sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
+       * sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents):
+       Fix a locking-order bug I introduced with my changes the other day.
+       Patch by Mike Smith.
+
 2007-05-21  Michael Smith <msmith@fluendo.com>
 
        * ext/theora/theoradec.c: (theora_handle_data_packet):
index 7f2a1d3..6acc167 100644 (file)
@@ -1041,8 +1041,8 @@ gst_ximagesink_handle_xevents (GstXImageSink * ximagesink)
 
     gst_ximagesink_expose (GST_X_OVERLAY (ximagesink));
 
-    g_mutex_lock (ximagesink->x_lock);
     g_mutex_lock (ximagesink->flow_lock);
+    g_mutex_lock (ximagesink->x_lock);
   }
 
   /* Handle Display events */
index 2f19443..a2635ff 100644 (file)
@@ -1177,8 +1177,8 @@ gst_xvimagesink_handle_xevents (GstXvImageSink * xvimagesink)
 
     gst_xvimagesink_expose (GST_X_OVERLAY (xvimagesink));
 
-    g_mutex_lock (xvimagesink->x_lock);
     g_mutex_lock (xvimagesink->flow_lock);
+    g_mutex_lock (xvimagesink->x_lock);
   }
 
   /* Handle Display events */