summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-10 20:31:27 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-10 20:31:27 +0000
commit0a85f24278be1c99df5f4b6c1caffbceca2163e1 (patch)
tree4125b0f761529c9347475db9a2b23298b693c599 /libmpdemux
parentdde0caf249672bb23690457a6bf89ba4cfdadf42 (diff)
downloadmpv-0a85f24278be1c99df5f4b6c1caffbceca2163e1.tar.bz2
mpv-0a85f24278be1c99df5f4b6c1caffbceca2163e1.tar.xz
implement norm switching, which was already documented??
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16962 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/tv.c10
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);
}