mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
unmap video buffers on close patch by (Lennert Buytenhek <buytenh at math dot leidenuniv dot nl>)
Originally committed as revision 891 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5bd11e314e
commit
e61efa2468
@ -306,6 +306,10 @@ static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
|
|||||||
static int grab_read_close(AVFormatContext *s1)
|
static int grab_read_close(AVFormatContext *s1)
|
||||||
{
|
{
|
||||||
VideoData *s = s1->priv_data;
|
VideoData *s = s1->priv_data;
|
||||||
|
|
||||||
|
if (s->use_mmap)
|
||||||
|
munmap(video_buf, gb_buffers.size);
|
||||||
|
|
||||||
/* restore audio settings */
|
/* restore audio settings */
|
||||||
ioctl(s->fd, VIDIOCSAUDIO, &audio_saved);
|
ioctl(s->fd, VIDIOCSAUDIO, &audio_saved);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user