Mercurial > libavformat.hg
changeset 1117:1291569071c6 libavformat
Fix segfault
Patch by R. Brian Anderson (andersrb AT cliftonlabs DOT com)
author | lucabe |
---|---|
date | Thu, 15 Jun 2006 15:15:20 +0000 |
parents | 22a86dfd052d |
children | 59b4933626df |
files | v4l2.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/v4l2.c Thu Jun 15 07:36:57 2006 +0000 +++ b/v4l2.c Thu Jun 15 15:15:20 2006 +0000 @@ -457,7 +457,9 @@ if (capabilities & V4L2_CAP_STREAMING) { s->io_method = io_mmap; res = mmap_init(s); - res = mmap_start(s); + if (res == 0) { + res = mmap_start(s); + } } else { s->io_method = io_read; res = read_init(s);