[MPlayer-cvslog] r22746 - trunk/stream/tv.c

voroshil subversion at mplayerhq.hu
Mon Mar 19 16:31:25 CET 2007


Author: voroshil
Date: Mon Mar 19 16:31:25 2007
New Revision: 22746

Modified:
   trunk/stream/tv.c

Log:
Add missing bogus norm warning for v4l2


Modified: trunk/stream/tv.c
==============================================================================
--- trunk/stream/tv.c	(original)
+++ trunk/stream/tv.c	Mon Mar 19 16:31:25 2007
@@ -181,7 +181,10 @@ static int norm_from_string(tvi_handle_t
 	strncpy(str, norm, sizeof(str)-1);
 	str[sizeof(str)-1] = '\0';
         if (funcs->control(tvh->priv, TVI_CONTROL_SPC_GET_NORMID, str) != TVI_CONTROL_TRUE)
+        {
+	    mp_msg(MSGT_TV, MSGL_WARN, "tv.c: norm_from_string(%s): Bogus norm parameter, setting default.\n", norm);
 	    return 0;
+        }
 	return *(int *)str;
     }
 #endif



More information about the MPlayer-cvslog mailing list