[MPlayer-cvslog] r22374 - trunk/m_option.c

gpoirier subversion at mplayerhq.hu
Wed Feb 28 10:18:42 CET 2007


Author: gpoirier
Date: Wed Feb 28 10:18:42 2007
New Revision: 22374

Modified:
   trunk/m_option.c

Log:
remove C99-ism (mixed declaration and code),
10l to Uoti Urpala for breaking GCC-2.95 support yet again even though any post-2.95 GCC version print a clear warning about it
Patch by Carl Eugen Hoyos % cehoyos A ag P or P at %


Modified: trunk/m_option.c
==============================================================================
--- trunk/m_option.c	(original)
+++ trunk/m_option.c	Wed Feb 28 10:18:42 2007
@@ -1204,10 +1204,12 @@ static double parse_timestring(char *str
 
 static int parse_time(m_option_t* opt,char *name, char *param, void* dst, int src)
 {
+  double time;
+
   if (param == NULL || strlen(param) == 0)
     return M_OPT_MISSING_PARAM;
   
-  double time = parse_timestring(param);
+  time = parse_timestring(param);
   if (time == -1e100) {
     mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Option %s: invalid time: '%s'\n",
            name,param);



More information about the MPlayer-cvslog mailing list