vlc | branch: master | Hannes Domani <[email protected]> | 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 <[email protected]> > 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"); } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
