From 0a85f24278be1c99df5f4b6c1caffbceca2163e1 Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 10 Nov 2005 20:31:27 +0000 Subject: implement norm switching, which was already documented?? git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16962 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/tv.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libmpdemux') 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); } -- cgit v1.2.3