[MPlayer-cvslog] r29157 - trunk/libao2/ao_pulse.c

reimar subversion at mplayerhq.hu
Thu Apr 9 22:04:24 CEST 2009


Author: reimar
Date: Thu Apr  9 22:04:24 2009
New Revision: 29157

Log:
Make sure waitop always unlocks the mainloop even if the operation could not
be created.
Patch by Lennart Poettering [lennart poettering net]

Modified:
   trunk/libao2/ao_pulse.c

Modified: trunk/libao2/ao_pulse.c
==============================================================================
--- trunk/libao2/ao_pulse.c	Thu Apr  9 16:23:09 2009	(r29156)
+++ trunk/libao2/ao_pulse.c	Thu Apr  9 22:04:24 2009	(r29157)
@@ -102,7 +102,10 @@ static void success_cb(pa_stream *s, int
  */
 static int waitop(pa_operation *op) {
     pa_operation_state_t state;
-    if (!op) return 0;
+    if (!op) {
+        pa_threaded_mainloop_unlock(mainloop);
+        return 0;
+    }
     state = pa_operation_get_state(op);
     while (state == PA_OPERATION_RUNNING) {
         pa_threaded_mainloop_wait(mainloop);


More information about the MPlayer-cvslog mailing list