[vlc-commits] vout: fix memory leak in ThreadReinit() in case of similar video format
Hannes Domani
git at videolan.org
Sat Feb 7 16:32:18 CET 2015
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Wed Sep 17 19:54:06 2014 +0200| [b1665d3d462a53354cc4413ea9714a20f887967d] | committer: Jean-Baptiste Kempf
vout: fix memory leak in ThreadReinit() in case of similar video format
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b1665d3d462a53354cc4413ea9714a20f887967d
---
src/video_output/video_output.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 2a6fe2a..40701b7 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1417,8 +1417,10 @@ static int ThreadReinit(vout_thread_t *vout,
/* We ignore crop/ar changes at this point, they are dynamically supported */
VideoFormatCopyCropAr(&vout->p->original, &original);
if (video_format_IsSimilar(&original, &vout->p->original)) {
- if (cfg->dpb_size <= vout->p->dpb_size)
+ if (cfg->dpb_size <= vout->p->dpb_size) {
+ video_format_Clean(&original);
return VLC_SUCCESS;
+ }
msg_Warn(vout, "DPB need to be increased");
}
More information about the vlc-commits
mailing list