From 6574e5da3457249749acd810006983605cf2cf7a Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 15 Dec 2008 20:19:27 +0000 Subject: [PATCH] 100l, reorder check for AC3 format to avoid a possible memleak git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28153 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_alsa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libao2/ao_alsa.c b/libao2/ao_alsa.c index cd7b862728..f7eeb7ddd9 100644 --- a/libao2/ao_alsa.c +++ b/libao2/ao_alsa.c @@ -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); -- 2.11.4.GIT