Mercurial > mplayer.hg
changeset 22728:5e4a2438a0e2
Add missing bogus norm warning for v4l2
author | voroshil |
---|---|
date | Mon, 19 Mar 2007 15:31:25 +0000 |
parents | 82c405252244 |
children | 07377f8f7f42 |
files | stream/tv.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/tv.c Mon Mar 19 12:28:53 2007 +0000 +++ b/stream/tv.c Mon Mar 19 15:31:25 2007 +0000 @@ -181,7 +181,10 @@ 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