[MPlayer-cvslog] r28153 - trunk/libao2/ao_alsa.c

reimar subversion at mplayerhq.hu
Mon Dec 15 21:19:27 CET 2008


Author: reimar
Date: Mon Dec 15 21:19:27 2008
New Revision: 28153

Log:
100l, reorder check for AC3 format to avoid a possible memleak


Modified:
   trunk/libao2/ao_alsa.c

Modified: trunk/libao2/ao_alsa.c
==============================================================================
--- trunk/libao2/ao_alsa.c	(original)
+++ trunk/libao2/ao_alsa.c	Mon Dec 15 21:19:27 2008
@@ -119,6 +119,9 @@ static int control(int cmd, void *arg)
       long get_vol, set_vol;
       float f_multi;
 
+      if(ao_data.format == AF_FORMAT_AC3)
+	return CONTROL_TRUE;
+
       if(mixer_channel) {
 	 char *test_mix_index;
 
@@ -137,9 +140,6 @@ static int control(int cmd, void *arg)
       }
       if(mixer_device) card = mixer_device;
 
-      if(ao_data.format == AF_FORMAT_AC3)
-	return CONTROL_TRUE;
-
       //allocate simple id
       snd_mixer_selem_id_alloca(&sid);
 	



More information about the MPlayer-cvslog mailing list