diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-09-18 22:22:45 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-09-18 22:22:45 +0200 |
commit | 4bc447a3c5ef4e69b54cc20857335e8dd5bca60c (patch) | |
tree | 36f2df5ad95c6b90bf2c90c3cf0bec786f19ad80 /libavdevice | |
parent | ba5ff1b31ea46098ef24ac43d8b37f451adec0b7 (diff) | |
download | ffmpeg-4bc447a3c5ef4e69b54cc20857335e8dd5bca60c.tar.gz |
Fix compilation with --disable-everything --enable-outdev=alsa.
Bug found and analysed by skierpage.
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/alsa-audio-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |