diff options
-rw-r--r-- | libmpdemux/tv.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libmpdemux/tv.c b/libmpdemux/tv.c index 35213ce58d..4070da7ac2 100644 --- a/libmpdemux/tv.c +++ b/libmpdemux/tv.c @@ -836,6 +836,16 @@ int tv_last_channel(tvi_handle_t *tvh) { int tv_step_norm(tvi_handle_t *tvh) { + tvh->norm++; + if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM, + &tvh->norm) != TVI_CONTROL_TRUE) { + tvh->norm = 0; + if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM, + &tvh->norm) != TVI_CONTROL_TRUE) { + mp_msg(MSGT_TV, MSGL_ERR, "Error: Cannot set norm!\n"); + return 0; + } + } return(1); } |