Mercurial > mplayer.hg
changeset 28118:4455edd2be89
100l, reorder check for AC3 format to avoid a possible memleak
author | reimar |
---|---|
date | Mon, 15 Dec 2008 20:19:27 +0000 |
parents | bd6833421e56 |
children | ab477599c7df |
files | libao2/ao_alsa.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_alsa.c Mon Dec 15 16:13:41 2008 +0000 +++ b/libao2/ao_alsa.c Mon Dec 15 20:19:27 2008 +0000 @@ -119,6 +119,9 @@ 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 @@ } 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);