[vlc-commits] commit: Properly reset pictures created for vout filters. (Laurent Aimar )

git at videolan.org git at videolan.org
Sun Jan 9 22:00:53 CET 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan  9 21:49:34 2011 +0100| [3f50c72acbf4fe8ca4f9631a3bff596cba2d3a05] | committer: Laurent Aimar 

Properly reset pictures created for vout filters.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f50c72acbf4fe8ca4f9631a3bff596cba2d3a05
---

 src/video_output/video_output.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 32fcde8..dc4ebbc 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -662,8 +662,10 @@ static picture_t *VoutVideoFilterInteractiveNewPicture(filter_t *filter)
     vout_thread_t *vout = (vout_thread_t*)filter->p_owner;
 
     picture_t *picture = picture_pool_Get(vout->p->private_pool);
-    if (picture)
+    if (picture) {
+        picture_Reset(picture);
         VideoFormatCopyCropAr(&picture->format, &filter->fmt_out.video);
+    }
     return picture;
 }
 static picture_t *VoutVideoFilterStaticNewPicture(filter_t *filter)



More information about the vlc-commits mailing list