aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-16 07:05:24 +0000
committerGravatar rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-16 07:05:24 +0000
commit239b0acd20b56b7b3c3b52dd7e78b2568e059830 (patch)
tree6c631923fe4c57f7cbe94e0260779111292ba677 /libmpcodecs
parent3516fe861d2f4eee1d87255bfdeb0194f2acb9e9 (diff)
minor 1l I forgot to commit a while back
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9444 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_field.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmpcodecs/vf_field.c b/libmpcodecs/vf_field.c
index de321bf645..0e2a5c9585 100644
--- a/libmpcodecs/vf_field.c
+++ b/libmpcodecs/vf_field.c
@@ -51,11 +51,15 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
//===========================================================================//
-// FIXME - do we need to free dmpi on uninit?
+static void uninit(struct vf_instance_s* vf)
+{
+ free(vf->priv);
+}
static int open(vf_instance_t *vf, char* args){
vf->config=config;
vf->put_image=put_image;
+ vf->uninit=uninit;
vf->default_reqs=VFCAP_ACCEPT_STRIDE;
vf->priv=calloc(1, sizeof(struct vf_priv_s));
if (args) sscanf(args, "%d", &vf->priv->field);