Replace duplicated code with call to routine

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24780 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
voroshil 2007-10-14 05:56:17 +00:00
parent a776f3be21
commit 19d217a981
1 changed files with 1 additions and 7 deletions

View File

@ -382,13 +382,7 @@ static int open_tv(tvi_handle_t *tvh)
}
} else {
#endif
/* select video norm */
tvh->norm = norm_from_string(tvh, tvh->tv_param->norm);
mp_msg(MSGT_TV, MSGL_V, MSGTR_TV_SelectedNorm, tvh->tv_param->norm);
if (funcs->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM, &tvh->norm) != TVI_CONTROL_TRUE) {
mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_CannotSetNorm);
}
tv_set_norm(tvh,tvh->tv_param->norm);
#if defined(HAVE_TV_V4L2) || defined(HAVE_TV_DSHOW)
}
#endif