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

reimar subversion at mplayerhq.hu
Thu Apr 9 22:20:00 CEST 2009


Author: reimar
Date: Thu Apr  9 22:20:00 2009
New Revision: 29160

Log:
Disable pause-hack from PulseAudio 0.9.15 on, it should be fixed.
Patch Lennart Poettering [lennart poettering net] with documentation
update by me.

Modified:
   trunk/libao2/ao_pulse.c

Modified: trunk/libao2/ao_pulse.c
==============================================================================
--- trunk/libao2/ao_pulse.c	Thu Apr  9 22:10:35 2009	(r29159)
+++ trunk/libao2/ao_pulse.c	Thu Apr  9 22:20:00 2009	(r29160)
@@ -153,11 +153,11 @@ static int init(int rate_hz, int channel
     }
 
     broken_pause = 0;
-    // not sure which versions are affected, assume 0.9.1*
+    // not sure which versions are affected, assume 0.9.11* to 0.9.14*
     // known bad: 0.9.14, 0.9.13
-    // known good: 0.9.9, 0.9.10
+    // known good: 0.9.9, 0.9.10, 0.9.15
     // to test: pause, wait ca. 5 seconds framestep and see if MPlayer hangs somewhen
-    if (strncmp(version, "0.9.1", 5) == 0 && strncmp(version, "0.9.10", 6) != 0) {
+    if (strncmp(version, "0.9.1", 5) == 0 && version[5] >= '1' && version[5] <= '4') {
         mp_msg(MSGT_AO, MSGL_WARN, "[pulse] working around probably broken pause functionality,\n"
                                    "        see http://www.pulseaudio.org/ticket/440\n");
         broken_pause = 1;


More information about the MPlayer-cvslog mailing list