[MPlayer-cvslog] r27712 - trunk/libao2/ao_alsa.c
ranma
subversion at mplayerhq.hu
Sat Oct 4 17:03:10 CEST 2008
Author: ranma
Date: Sat Oct 4 17:03:10 2008
New Revision: 27712
Log:
Make alsa resume after suspend to disk (would say 'file descriptor is in bad state' before this change)
Modified:
trunk/libao2/ao_alsa.c
Modified: trunk/libao2/ao_alsa.c
==============================================================================
--- trunk/libao2/ao_alsa.c (original)
+++ trunk/libao2/ao_alsa.c Sat Oct 4 17:03:10 2008
@@ -765,6 +765,10 @@ static void audio_resume(void)
{
int err;
+ if (snd_pcm_state(alsa_handler) == SND_PCM_STATE_SUSPENDED) {
+ mp_msg(MSGT_AO,MSGL_INFO,MSGTR_AO_ALSA_PcmInSuspendModeTryingResume);
+ while ((err = snd_pcm_resume(alsa_handler)) == -EAGAIN) sleep(1);
+ }
if (alsa_can_pause) {
if ((err = snd_pcm_pause(alsa_handler, 0)) < 0)
{
More information about the MPlayer-cvslog
mailing list