Fixed non-standard for webcam properly

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2785 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2009-02-20 18:15:16 +00:00
parent 57f8127498
commit b89b1cfc7c
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ void LocalCamera::Initialise()
} }
stdId = standard; stdId = standard;
if ( vidioctl( vid_fd, VIDIOC_S_STD, &stdId ) < 0 ) if ( (input.std != V4L2_STD_UNKNOWN) && vidioctl( vid_fd, VIDIOC_S_STD, &stdId ) < 0 )
{ {
Fatal( "Failed to set video standard %d: %s", standard, strerror(errno) ); Fatal( "Failed to set video standard %d: %s", standard, strerror(errno) );
} }