summaryrefslogtreecommitdiffstats
path: root/stream/tv.c
diff options
context:
space:
mode:
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