Commit 83a9f933 authored by michaelni's avatar michaelni

unmap video buffers on close patch by (Lennert Buytenhek <buytenh at math dot leidenuniv dot nl>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@891 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b70bddd1
......@@ -306,6 +306,10 @@ static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
static int grab_read_close(AVFormatContext *s1)
{
VideoData *s = s1->priv_data;
if (s->use_mmap)
munmap(video_buf, gb_buffers.size);
/* restore audio settings */
ioctl(s->fd, VIDIOCSAUDIO, &audio_saved);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment