mirror of https://github.com/mpv-player/mpv
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:
parent
18100af70f
commit
6574e5da34
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue