From 4bc447a3c5ef4e69b54cc20857335e8dd5bca60c Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 18 Sep 2011 22:22:45 +0200 Subject: Fix compilation with --disable-everything --enable-outdev=alsa. Bug found and analysed by skierpage. --- libavdevice/alsa-audio-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavdevice/alsa-audio-common.c') diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c index 0943ab030a..79faf8848d 100644 --- a/libavdevice/alsa-audio-common.c +++ b/libavdevice/alsa-audio-common.c @@ -319,7 +319,8 @@ av_cold int ff_alsa_close(AVFormatContext *s1) AlsaData *s = s1->priv_data; av_freep(&s->reorder_buf); - ff_timefilter_destroy(s->timefilter); + if (CONFIG_ALSA_INDEV) + ff_timefilter_destroy(s->timefilter); snd_pcm_close(s->h); return 0; } -- cgit v1.2.3