# HG changeset patch # User reimar # Date 1131654687 0 # Node ID 8b5a4d2dcc2bf5b4cbdbf96f9602f43a61badfb2 # Parent 917be9f5e46d373593d7cf389e7502a40d0de039 implement norm switching, which was already documented?? diff -r 917be9f5e46d -r 8b5a4d2dcc2b libmpdemux/tv.c --- a/libmpdemux/tv.c Thu Nov 10 18:20:28 2005 +0000 +++ b/libmpdemux/tv.c Thu Nov 10 20:31:27 2005 +0000 @@ -836,6 +836,16 @@ 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); }