Hi,

attached patch fix a frame leak that happens in avformat_consumer if it been stopped before entering while{} in a working thread...

--
________________________________________
Maksym Veremeyenko

>From 2a6961c6ac0c8dade537741f9a861e03fa84d3c8 Mon Sep 17 00:00:00 2001
From: Maksym Veremeyenko <ve...@m1stereo.tv>
Date: Thu, 17 Oct 2013 19:05:37 +0300
Subject: [PATCH 2/2] frame leak fix

---
 src/modules/avformat/consumer_avformat.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c
index 33b3a93..72dcaea 100644
--- a/src/modules/avformat/consumer_avformat.c
+++ b/src/modules/avformat/consumer_avformat.c
@@ -2150,7 +2150,10 @@ static void *consumer_thread( void *arg )
 	}
 
 on_fatal_error:
-	
+
+	if ( frame )
+		mlt_frame_close( frame );
+
 	// Write the trailer, if any
 	if ( frames )
 		av_write_trailer( oc );
-- 
1.7.7.6

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to