0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

implement norm switching, which was already documented??

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16962 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-11-10 20:31:27 +00:00
parent dde0caf249
commit 0a85f24278

View File

@ -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);
}