changeset 33828:d2a42640b9d7

ao_sun: print fatal error messages not only in verbose mode
author diego
date Sun, 24 Jul 2011 23:55:38 +0000
parents 277ec491a8a7
children 2468dc935bed
files libao2/ao_sun.c
diffstat 1 files changed, 5 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}