Add missing bogus norm warning for v4l2

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22746 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
voroshil 2007-03-19 15:31:25 +00:00
parent ac45fd3aac
commit 1d44eade53
1 changed files with 3 additions and 0 deletions

View File

@ -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