summaryrefslogtreecommitdiffstats
path: root/stream/tv.c
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-19 15:31:25 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-19 15:31:25 +0000
commit1d44eade53f1fed4ca6f0c2d8cb80f4d286b49b5 (patch)
tree4f4d2ee51df311d2ce05b6cfc56344bc6ee45376 /stream/tv.c
parentac45fd3aacf01d097deffebbe235a74a911d3578 (diff)
downloadmpv-1d44eade53f1fed4ca6f0c2d8cb80f4d286b49b5.tar.bz2
mpv-1d44eade53f1fed4ca6f0c2d8cb80f4d286b49b5.tar.xz
Add missing bogus norm warning for v4l2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22746 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tv.c')
-rw-r--r--stream/tv.c3
1 files changed, 3 insertions, 0 deletions
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