[FFmpeg-devel] [PATCH]Fix compilation with --disable-everything --enable-outdev=alsa

Michael Niedermayer michaelni at gmx.at
Sun Sep 18 20:10:44 CEST 2011


On Sun, Sep 18, 2011 at 07:45:00PM +0200, Carl Eugen Hoyos wrote:
> Hi!
> 
> Ticket #483 contains a patch, attached is an alternative, one of them should 
> be applied.
> 
> Please comment, Carl Eugen

>  alsa-audio-common.c |    2 ++
>  1 file changed, 2 insertions(+)
> 0a432c95a4d4d7c24064612a51bc77256291b776  patchalsacommon.diff
> diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c
> index 0943ab0..ba4090c 100644
> --- a/libavdevice/alsa-audio-common.c
> +++ b/libavdevice/alsa-audio-common.c
> @@ -319,7 +319,9 @@ av_cold int ff_alsa_close(AVFormatContext *s1)
>      AlsaData *s = s1->priv_data;
>  
>      av_freep(&s->reorder_buf);
> +#if CONFIG_ALSA_INDEV
>      ff_timefilter_destroy(s->timefilter);
> +#endif
   
if(CONFIG_ALSA_INDEV)
     ff_timefilter_destroy(s->timefilter);

should work too

either way, its LGTM

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110918/abd9c668/attachment.asc>


More information about the ffmpeg-devel mailing list