[Ffmpeg-cvslog] r5480 - trunk/libavformat/v4l2.c
lucabe
subversion
Thu Jun 15 17:15:20 CEST 2006
Author: lucabe
Date: Thu Jun 15 17:15:20 2006
New Revision: 5480
Modified:
trunk/libavformat/v4l2.c
Log:
Fix segfault
Patch by R. Brian Anderson (andersrb AT cliftonlabs DOT com)
Modified: trunk/libavformat/v4l2.c
==============================================================================
--- trunk/libavformat/v4l2.c (original)
+++ trunk/libavformat/v4l2.c Thu Jun 15 17:15:20 2006
@@ -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);
More information about the ffmpeg-cvslog
mailing list