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:
diego 2008-11-23 12:01:48 +00:00
parent 0ad147ed5c
commit 929dc9a8ac
1 changed files with 9 additions and 10 deletions

View File

@ -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",