Yap. Thanx!


2013/4/27 Dan Dennedy <ddennedy@gmail.com>
On Sat, Apr 27, 2013 at 6:42 AM, Ed Rogalsky <ed.rogalsky@gmail.com> wrote:
> Oh sorry,
>
> the dead lock I got from my jack setup. Now it works  but I get a crash if I
> play in the clip-monitor and I switch to the project monitor.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff4931339 in mlt_properties_dec_ref (self=0xf0bf4ad45255d245) at
> mlt_properties.c:386
> 386 mlt_properties.c: Datei oder Verzeichnis nicht gefunden.
> bt
> #0  0x00007ffff4931339 in mlt_properties_dec_ref (self=0xf0bf4ad45255d245)
> at mlt_properties.c:386
> #1  0x00007ffff492c6da in mlt_frame_close (self=0xf0bf4ad45255d245) at
> mlt_frame.c:914
> #2  0x00007ffff4940d3e in mlt_consumer_purge (self=0x280b0d0) at
> mlt_consumer.c:1230


I believe this fixes it. I am about to commit it.

diff --git a/src/framework/mlt_consumer.c b/src/framework/mlt_consumer.c
index 866ebf2..5cd7bc6 100644
--- a/src/framework/mlt_consumer.c
+++ b/src/framework/mlt_consumer.c
@@ -1226,7 +1226,7 @@ void mlt_consumer_purge( mlt_consumer self )
   if ( self->purge )
    self->purge( self );

- while ( mlt_deque_count( self->queue ) )
+ while ( self->ahead && mlt_deque_count( self->queue ) )
    mlt_frame_close( mlt_deque_pop_back( self->queue ) );
   if ( self->ahead && self->real_time )
   {


+-DRD-+