[FFmpeg-devel] [PATCH] lavd/alsa-audio-common: dont crash while closing not opened device

Nicolas George george at nsup.org
Mon Dec 15 13:05:47 CET 2014

Le quintidi 25 frimaire, an CCXXIII, Lukasz Marek a écrit :
> snd_pcm_close() doesn't handle NULL correctly.
> Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> ---
>  libavdevice/alsa-audio-common.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

I think it is ok, but can you explain the code path that leads to it?


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141215/76cedb5c/attachment.asc>

More information about the ffmpeg-devel mailing list