1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

Fix compilation with --disable-everything --enable-outdev=alsa.

Bug found and analysed by skierpage.
This commit is contained in:
Carl Eugen Hoyos 2011-09-18 22:22:45 +02:00
parent ba5ff1b31e
commit 4bc447a3c5

View File

@ -319,6 +319,7 @@ av_cold int ff_alsa_close(AVFormatContext *s1)
AlsaData *s = s1->priv_data; AlsaData *s = s1->priv_data;
av_freep(&s->reorder_buf); av_freep(&s->reorder_buf);
if (CONFIG_ALSA_INDEV)
ff_timefilter_destroy(s->timefilter); ff_timefilter_destroy(s->timefilter);
snd_pcm_close(s->h); snd_pcm_close(s->h);
return 0; return 0;