]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_consumer.c
Fix a couple null pointer bugs.
[mlt] / src / framework / mlt_consumer.c
index 7fba55641b3b211589e2bb95bcee220f8da16755..418c11994c8a4209f198f3f9c4429a411c91686c 100644 (file)
@@ -1184,7 +1184,7 @@ static mlt_frame worker_get_frame( mlt_consumer self, mlt_properties properties
        // Adapt the worker process head to the runtime conditions.
        if ( self->real_time > 0 )
        {
-               if ( mlt_properties_get_int( MLT_FRAME_PROPERTIES( frame ), "rendered" ) )
+               if ( frame && mlt_properties_get_int( MLT_FRAME_PROPERTIES( frame ), "rendered" ) )
                {
                        self->consecutive_dropped = 0;
                        if ( self->process_head > size && self->consecutive_rendered >= self->process_head )