mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
cosmetics: Move up uninit() to avoid a forward declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27983 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0ad147ed5c
commit
929dc9a8ac
@ -258,7 +258,15 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void uninit(vf_instance_t *vf);
|
||||
static void uninit(vf_instance_t *vf)
|
||||
{
|
||||
av_freep(&vf->priv->avctx);
|
||||
if(vf->priv->ctx) sws_freeContext(vf->priv->ctx);
|
||||
if (vf->priv->buffer) free(vf->priv->buffer);
|
||||
free(vf->priv->outbuffer);
|
||||
free(vf->priv);
|
||||
}
|
||||
|
||||
// open conflicts with stdio.h at least under MinGW
|
||||
static int screenshot_open(vf_instance_t *vf, char* args)
|
||||
{
|
||||
@ -286,15 +294,6 @@ static int screenshot_open(vf_instance_t *vf, char* args)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void uninit(vf_instance_t *vf)
|
||||
{
|
||||
av_freep(&vf->priv->avctx);
|
||||
if(vf->priv->ctx) sws_freeContext(vf->priv->ctx);
|
||||
if (vf->priv->buffer) free(vf->priv->buffer);
|
||||
free(vf->priv->outbuffer);
|
||||
free(vf->priv);
|
||||
}
|
||||
|
||||
|
||||
const vf_info_t vf_info_screenshot = {
|
||||
"screenshot to file",
|
||||
|
Loading…
Reference in New Issue
Block a user