Mercurial > mplayer.hg
changeset 16961:8b5a4d2dcc2b
implement norm switching, which was already documented??
author | reimar |
---|---|
date | Thu, 10 Nov 2005 20:31:27 +0000 |
parents | 917be9f5e46d |
children | bdc218b5a49a |
files | libmpdemux/tv.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); }