From 1d44eade53f1fed4ca6f0c2d8cb80f4d286b49b5 Mon Sep 17 00:00:00 2001 From: voroshil Date: Mon, 19 Mar 2007 15:31:25 +0000 Subject: Add missing bogus norm warning for v4l2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22746 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stream/tv.c') diff --git a/stream/tv.c b/stream/tv.c index 44661289eb..6f0e1e6cff 100644 --- a/stream/tv.c +++ b/stream/tv.c @@ -181,7 +181,10 @@ static int norm_from_string(tvi_handle_t *tvh, char* norm) 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 -- cgit v1.2.3