[vlc-devel] commit: Fix use of strchr() ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Aug 29 12:31:29 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 29 13:30:51 2009 +0300| [9345e261c50a15ec890be3c92589680e739e3f35] | committer: Rémi Denis-Courmont
Fix use of strchr()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9345e261c50a15ec890be3c92589680e739e3f35
---
modules/access/v4l2.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/v4l2.c b/modules/access/v4l2.c
index ee39780..f88d914 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -692,9 +692,9 @@ static void GetV4L2Params( demux_sys_t *p_sys, vlc_object_t *p_obj )
p_sys->psz_set_ctrls = var_CreateGetString( p_obj, "v4l2-set-ctrls" );
char *psz_aspect = var_CreateGetString( p_obj, "v4l2-aspect-ratio" );
- if( psz_aspect && *psz_aspect && strchr( psz_aspect, ":" ) )
+ if( psz_aspect && *psz_aspect && strchr( psz_aspect, ':' ) )
{
- char psz_delim = strchr( psz_aspect, ":" );
+ char *psz_delim = strchr( psz_aspect, ':' );
p_sys->i_aspect = atoi( psz_aspect ) * VOUT_ASPECT_FACTOR / atoi( psz_delim + 1 );
}
else
More information about the vlc-devel
mailing list