changeset 35109:a6a38b385d24

For consistency clear mpi->priv after it was used.
author reimar
date Mon, 17 Sep 2012 20:30:07 +0000
parents 0543235d2e21
children 006375b8c072
files libmpcodecs/vf_delogo.c libmpcodecs/vf_unsharp.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_delogo.c	Mon Sep 17 19:50:29 2012 +0000
+++ b/libmpcodecs/vf_delogo.c	Mon Sep 17 20:30:07 2012 +0000
@@ -200,6 +200,7 @@
 
     if(mpi->flags&MP_IMGFLAG_DIRECT) {
         vf->dmpi = mpi->priv;
+        mpi->priv = NULL;
     } else {
         // no DR, so get a new image! hope we'll get DR buffer:
         vf->dmpi=vf_get_image(vf->next,vf->priv->outfmt,
--- a/libmpcodecs/vf_unsharp.c	Mon Sep 17 19:50:29 2012 +0000
+++ b/libmpcodecs/vf_unsharp.c	Mon Sep 17 20:30:07 2012 +0000
@@ -181,6 +181,7 @@
 
 static int put_image( struct vf_instance *vf, mp_image_t *mpi, double pts) {
     mp_image_t *dmpi = mpi->priv;
+    mpi->priv = NULL;
 
     if( !(mpi->flags & MP_IMGFLAG_DIRECT) )
         // no DR, so get a new image! hope we'll get DR buffer: