mirror of https://github.com/mpv-player/mpv
Cosmetics.
10l: forget to move up second routine git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23900 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
96addffa41
commit
d68160b3c2
20
stream/tv.c
20
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue