[MPlayer-cvslog] r23354 - trunk/libao2/ao_sun.c

reimar subversion at mplayerhq.hu
Sun May 20 14:20:03 CEST 2007


Author: reimar
Date: Sun May 20 14:20:03 2007
New Revision: 23354

Log:
Move common ioctl outside of ifdef


Modified:
   trunk/libao2/ao_sun.c

Modified: trunk/libao2/ao_sun.c
==============================================================================
--- trunk/libao2/ao_sun.c	(original)
+++ trunk/libao2/ao_sun.c	Sun May 20 14:20:03 2007
@@ -651,12 +651,11 @@ static int get_space(void){
     }
 #endif
 
-#if !defined (__OpenBSD__) && !defined(__NetBSD__)
     ioctl(audio_fd, AUDIO_GETINFO, &info);
+#if !defined (__OpenBSD__) && !defined(__NetBSD__)
     if (queued_bursts - info.play.eof > 2)
 	return 0;
 #else
-    ioctl(audio_fd, AUDIO_GETINFO, &info);
     return info.hiwat * info.blocksize - info.play.seek;
 #endif
 



More information about the MPlayer-cvslog mailing list