X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Fv4l.c;h=c61bd0a59eb23dca24aea1198ef7cefc2acc48d6;hb=6ee1e193fd896ab9a4729fde14f009d9ce629815;hp=6fb5828042566dc707b4f088ade5e3b9245ca7e8;hpb=3305b049e7f587b23359a1c9047fb5763d19c1dc;p=vlc diff --git a/modules/access/v4l.c b/modules/access/v4l.c index 6fb5828042..c61bd0a59e 100644 --- a/modules/access/v4l.c +++ b/modules/access/v4l.c @@ -765,7 +765,7 @@ static void ParseMRL( demux_t *p_demux ) } else if( !strncmp( psz_parser, "hue=", strlen( "hue=" ) ) ) { - p_sys->i_hue = strtol( psz_parser + strlen( "hue=" ), + p_sys->i_hue = strtol( psz_parser + strlen( "hue=" ), &psz_parser, 0 ); } else if( !strncmp( psz_parser, "contrast=", strlen( "contrast=" ) ) ) @@ -1450,7 +1450,7 @@ static uint8_t *GrabCapture( demux_t *p_demux ) while( ioctl(p_sys->fd_video, VIDIOCSYNC, &p_sys->i_frame_pos) < 0 ) { - if( errno != EAGAIN && errno != EINTR ) + if( errno != EAGAIN && errno != EINTR ) { msg_Err( p_demux, "failed syncing new frame" ); return NULL; @@ -1488,7 +1488,7 @@ static uint8_t *GrabMJPEG( demux_t *p_demux ) /* sync on the next frame */ while( ioctl( p_sys->fd_video, MJPIOC_SYNC, &sync ) < 0 ) { - if( errno != EAGAIN && errno != EINTR ) + if( errno != EAGAIN && errno != EINTR ) { msg_Err( p_demux, "failed syncing new frame" ); return NULL;