[MPlayer-dev-eng] [PATCH 2/12] ao_alsa: clean up play() function

Clemens Ladisch cl at cl.domainfactory-kunde.de
Mon Feb 6 09:28:35 CET 2006


After removing play_mmap(), the play() function just unconditionally
calls play_normal().  This indirection is now superfluous.

Index: MPlayer-1.0pre7try2/libao2/ao_alsa.c
===================================================================
--- MPlayer-1.0pre7try2.orig/libao2/ao_alsa.c	2006-02-05 22:52:09.000000000 +0100
+++ MPlayer-1.0pre7try2/libao2/ao_alsa.c	2006-02-05 22:52:10.000000000 +0100
@@ -810,16 +810,6 @@ static int xrun(u_char *str_mode)
   return(1); /* ok, data should be accepted again */
 }
 
-static int play_normal(void* data, int len);
-
-static int play(void* data, int len, int flags)
-{
-  int result;
-  result = play_normal(data, len);
-
-  return result;
-}
-
 /*
     plays 'len' bytes of 'data'
     returns: number of bytes played
@@ -827,7 +817,7 @@ static int play(void* data, int len, int
     thanxs for marius <marius at rospot.com> for giving us the light ;)
 */
 
-static int play_normal(void* data, int len)
+static int play(void* data, int len, int flags)
 {
 
   //bytes_per_sample is always 4 for 2 chn S16_LE




More information about the MPlayer-dev-eng mailing list