fix another segfault

pull/327/merge
Isaac Connor 2014-09-08 16:46:41 -04:00
parent 9a3b685016
commit 8891639767
1 changed files with 4 additions and 0 deletions

View File

@ -2135,12 +2135,16 @@ int LocalCamera::PostCapture()
return( -1 ); return( -1 );
} }
} }
if ( v4l2_data ) {
Debug( 3, "Requeueing buffer %d", v4l2_data.bufptr->index ); Debug( 3, "Requeueing buffer %d", v4l2_data.bufptr->index );
if ( vidioctl( vid_fd, VIDIOC_QBUF, v4l2_data.bufptr ) < 0 ) if ( vidioctl( vid_fd, VIDIOC_QBUF, v4l2_data.bufptr ) < 0 )
{ {
Error( "Unable to requeue buffer %d: %s", v4l2_data.bufptr->index, strerror(errno) ) Error( "Unable to requeue buffer %d: %s", v4l2_data.bufptr->index, strerror(errno) )
return( -1 ); return( -1 );
} }
} else {
Error( "Unable to requeue buffer due to not v4l2_data" )
}
} }
#endif // ZM_HAS_V4L2 #endif // ZM_HAS_V4L2
#if ZM_HAS_V4L1 #if ZM_HAS_V4L1