[MPlayer-users] Continuous "Audio device got stuck!" warnings playing audio-only files with -ao pulse

Ilja Sekler ilja_sekler_ at gmx.de
Tue Feb 14 18:52:46 CET 2012


Hello,

since r34693:


LANG=C svn log -v -r 34693
------------------------------------------------------------------------
r34693 | reimar | 2012-02-12 14:35:17 +0100 (Sun, 12 Feb 2012) | 6 lines
Changed paths:
   M /trunk/mplayer.c

Try to detect when an audio driver ends up hanging after
repeated seeks.

This should at least give a clear message in the case of
bug 2039.


MPlayer continuously prints "Audio device got stuck!" warnings to
console while playing audio-only files with -ao pulse (but not with -ao
alsa), otherwise the playback works impeccably. I use the following patch


Index: mplayer.c
===================================================================
--- mplayer.c	(Revision 34723)
+++ mplayer.c	(Arbeitskopie)
@@ -2142,8 +2142,8 @@
         // this is where mplayer sleeps during audio-only playback
         // to avoid 100% CPU use
         sleep_time = (ao_data.outburst - bytes_to_write) * 1000 /
ao_data.bps;
-        if (sleep_time < 10)
-            sleep_time = 10;                  // limit to 100 wakeups
per second
+        if (sleep_time < 20)
+            sleep_time = 20;                  // limit to 50 wakeups
per second
         usec_sleep(sleep_time * 1000);
     }


as an I-don't-have-a-clue-what-I'm-doing hotfix, but a real skillful
solution for this new annoyance would be greatly appreciated.

OS: Fedora 16 x86_64

MPlayer r34723

Thanks,

-- 
Regards

Ilja


More information about the MPlayer-users mailing list