mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
stream/tv: move new_handle() function from header to tv.c
Move TV input new_handle static function to tv.c and make it non-static. There is no need to duplicate the function in the binary. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32225 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -45,29 +45,6 @@ static const tvi_functions_t functions =
|
||||
get_audio_framesize
|
||||
};
|
||||
|
||||
static tvi_handle_t *new_handle(void)
|
||||
{
|
||||
tvi_handle_t *h = malloc(sizeof(*h));
|
||||
|
||||
if (!h)
|
||||
return NULL;
|
||||
h->priv = calloc(1, sizeof(priv_t));
|
||||
if (!h->priv)
|
||||
{
|
||||
free(h);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
h->functions = &functions;
|
||||
h->seq = 0;
|
||||
h->chanlist = -1;
|
||||
h->chanlist_s = NULL;
|
||||
h->norm = -1;
|
||||
h->channel = -1;
|
||||
h->scan = NULL;
|
||||
return h;
|
||||
}
|
||||
|
||||
/**
|
||||
Fills video frame in given buffer with blue color for yv12,i420,uyvy,yuy2.
|
||||
Other formats will be filled with 0xC0
|
||||
|
||||
Reference in New Issue
Block a user