[vlc-devel] commit: Fix use of strchr() ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Oct 29 14:59:31 CET 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 29 13:30:51 2009 +0300| [a3f054786e2ed65a1db5d68833c100155ccd80f8] | committer: Pierre Ynard
Fix use of strchr()
(cherry picked from commit 9345e261c50a15ec890be3c92589680e739e3f35)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3f054786e2ed65a1db5d68833c100155ccd80f8
---
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 41d3566..2659b81 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -696,9 +696,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