[MPlayer-cvslog] r38305 - trunk/libao2/ao_oss.c
reimar
subversion at mplayerhq.hu
Thu Apr 15 22:26:54 EEST 2021
Author: reimar
Date: Thu Apr 15 22:26:53 2021
New Revision: 38305
Log:
ao_oss: only print failure message if something failed.
Modified:
trunk/libao2/ao_oss.c
Modified: trunk/libao2/ao_oss.c
==============================================================================
--- trunk/libao2/ao_oss.c Fri Mar 19 21:10:05 2021 (r38304)
+++ trunk/libao2/ao_oss.c Thu Apr 15 22:26:53 2021 (r38305)
@@ -469,7 +469,8 @@ static void reset(void){
}
fail |= ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate) == -1;
}
- mp_msg(MSGT_AO,MSGL_WARN, "OSS: Reset failed\n");
+ if (fail)
+ mp_msg(MSGT_AO,MSGL_WARN, "OSS: Reset failed\n");
}
// stop playing, keep buffers (for pause)
More information about the MPlayer-cvslog
mailing list