Mercurial > mplayer.hg
changeset 24752:21bddf1a7126
Replace duplicated code with call to routine
author | voroshil |
---|---|
date | Sun, 14 Oct 2007 05:56:17 +0000 |
parents | fce055542191 |
children | 0dca70b5337b |
files | stream/tv.c |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/tv.c Sun Oct 14 05:45:20 2007 +0000 +++ b/stream/tv.c Sun Oct 14 05:56:17 2007 +0000 @@ -382,13 +382,7 @@ } } 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