# HG changeset patch # User diego # Date 1311551738 0 # Node ID d2a42640b9d730b68f719794cd0aa482e38aa706 # Parent 277ec491a8a79ff090079721ad1fb849b8cfb77e ao_sun: print fatal error messages not only in verbose mode diff -r 277ec491a8a7 -r d2a42640b9d7 libao2/ao_sun.c --- a/libao2/ao_sun.c Sun Jul 24 23:55:34 2011 +0000 +++ b/libao2/ao_sun.c Sun Jul 24 23:55:38 2011 +0000 @@ -153,20 +153,17 @@ info.play.encoding = AUDIO_ENCODING_LINEAR; info.play.samples = 0; if (ioctl(fd, AUDIO_SETINFO, &info)) { - if ( mp_msg_test(MSGT_AO,MSGL_V) ) - mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_RtscSetinfoFailed); + mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_RtscSetinfoFailed); goto error; } if (write(fd, silence, len) != len) { - if ( mp_msg_test(MSGT_AO,MSGL_V) ) - mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_RtscWriteFailed); + mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_RtscWriteFailed); goto error; } if (ioctl(fd, AUDIO_GETINFO, &info)) { - if ( mp_msg_test(MSGT_AO,MSGL_V) ) - perror("rtsc: GETINFO1"); + perror("rtsc: GETINFO1"); goto error; } @@ -187,13 +184,11 @@ break; if (ioctl(fd, AUDIO_GETINFO, &info)) { - if ( mp_msg_test(MSGT_AO,MSGL_V) ) - perror("rtsc: GETINFO2 failed"); + perror("rtsc: GETINFO2 failed"); goto error; } if (info.play.samples < last_samplecnt) { - if ( mp_msg_test(MSGT_AO,MSGL_V) ) - mp_msg(MSGT_AO,MSGL_V,"rtsc: %d > %d?\n", last_samplecnt, info.play.samples); + mp_msg(MSGT_AO, MSGL_V, "rtsc: %d > %d?\n", last_samplecnt, info.play.samples); goto error; }