From d68160b3c28462db95178eecfd312bf5b6eec58d Mon Sep 17 00:00:00 2001 From: voroshil Date: Sun, 29 Jul 2007 03:38:01 +0000 Subject: Cosmetics. 10l: forget to move up second routine git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23900 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tv.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'stream/tv.c') diff --git a/stream/tv.c b/stream/tv.c index 94e41cec8c..d61f4d9cf9 100644 --- a/stream/tv.c +++ b/stream/tv.c @@ -539,6 +539,16 @@ tvi_handle_t *tv_begin(void) return(NULL); } +int tv_uninit(tvi_handle_t *tvh) +{ + int res; + if(!tvh) return 1; + if (!tvh->priv) return 1; + res=tvh->functions->uninit(tvh->priv); + if(res) tvh->priv=NULL; + return res; +} + static demuxer_t* demux_open_tv(demuxer_t *demuxer) { tvi_handle_t *tvh; @@ -697,16 +707,6 @@ static void demux_close_tv(demuxer_t *demuxer) demuxer->priv=NULL; } -int tv_uninit(tvi_handle_t *tvh) -{ - int res; - if(!tvh) return 1; - if (!tvh->priv) return 1; - res=tvh->functions->uninit(tvh->priv); - if(res) tvh->priv=NULL; - return res; -} - /* utilities for mplayer (not mencoder!!) */ int tv_set_color_options(tvi_handle_t *tvh, int opt, int value) { -- cgit v1.2.3