From 19d217a9819a20f6dd147c4749d88be5ba850c6a Mon Sep 17 00:00:00 2001 From: voroshil Date: Sun, 14 Oct 2007 05:56:17 +0000 Subject: Replace duplicated code with call to routine git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24780 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tv.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'stream/tv.c') diff --git a/stream/tv.c b/stream/tv.c index 274313f79b..dac10feb46 100644 --- a/stream/tv.c +++ b/stream/tv.c @@ -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 -- cgit v1.2.3