mirror of
https://github.com/mpv-player/mpv
synced 2025-01-04 22:20:22 +00:00
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:
parent
ac45fd3aac
commit
1d44eade53
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user