[Mplayer-cvslog] CVS: main/libao2 ao_alsa9.c,1.29,1.30

Filip Kalinski CVS filon at mplayerhq.hu
Fri Jan 10 19:28:34 CET 2003


Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv10886/libao2

Modified Files:
	ao_alsa9.c 
Log Message:
Workaround for returning very litte buffer space.


Index: ao_alsa9.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_alsa9.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- ao_alsa9.c	4 Dec 2002 22:01:59 -0000	1.29
+++ ao_alsa9.c	10 Jan 2003 18:28:18 -0000	1.30
@@ -59,6 +59,8 @@
 static int alsa_fragcount = 16;
 static int chunk_size = 1024; //is alsa_fragsize / 4
 
+#define MIN_CHUNK_SIZE 1024
+
 static size_t bits_per_sample, bytes_per_sample, bits_per_frame;
 static size_t chunk_bytes;
 
@@ -1084,6 +1086,10 @@
       ret = 0;
     }
  
+    // workaround for too small value returned
+    if (ret < MIN_CHUNK_SIZE)
+      ret = 0;
+
     return(ret);
 }
 



More information about the MPlayer-cvslog mailing list