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
This commit is contained in:
reimar 2008-12-15 20:19:27 +00:00
parent 18100af70f
commit 6574e5da34
1 changed files with 3 additions and 3 deletions

View File

@ -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);