mirror of https://github.com/mpv-player/mpv
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:
parent
dde0caf249
commit
0a85f24278
|
@ -836,6 +836,16 @@ int tv_last_channel(tvi_handle_t *tvh) {
|
||||||
|
|
||||||
int tv_step_norm(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);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue