[MPlayer-cvslog] r35203 - in trunk/libmpcodecs: vf_delogo.c vf_unsharp.c
reimar
subversion at mplayerhq.hu
Mon Sep 17 22:30:07 CEST 2012
Author: reimar
Date: Mon Sep 17 22:30:07 2012
New Revision: 35203
Log:
For consistency clear mpi->priv after it was used.
Modified:
trunk/libmpcodecs/vf_delogo.c
trunk/libmpcodecs/vf_unsharp.c
Modified: trunk/libmpcodecs/vf_delogo.c
==============================================================================
--- trunk/libmpcodecs/vf_delogo.c Mon Sep 17 21:50:29 2012 (r35202)
+++ trunk/libmpcodecs/vf_delogo.c Mon Sep 17 22:30:07 2012 (r35203)
@@ -200,6 +200,7 @@ static int put_image(struct vf_instance
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,
Modified: trunk/libmpcodecs/vf_unsharp.c
==============================================================================
--- trunk/libmpcodecs/vf_unsharp.c Mon Sep 17 21:50:29 2012 (r35202)
+++ trunk/libmpcodecs/vf_unsharp.c Mon Sep 17 22:30:07 2012 (r35203)
@@ -181,6 +181,7 @@ static void get_image( struct vf_instanc
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:
More information about the MPlayer-cvslog
mailing list