summaryrefslogtreecommitdiffstats
path: root/stream/tv.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/tv.c')
-rw-r--r--stream/tv.c20
1 files changed, 10 insertions, 10 deletions
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)
{