null pointer check in end_playlist
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 22 Mar 2004 13:24:45 +0000 (13:24 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 22 Mar 2004 13:24:45 +0000 (13:24 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@227 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/westley/producer_westley.c

index 2277ece..06c6cfe 100644 (file)
@@ -373,6 +373,8 @@ static void on_end_playlist( deserialise_context context, const xmlChar *name )
 {
        // Get the playlist from the stack
        mlt_service producer = context_pop_service( context );
+       if ( producer == NULL )
+               return;
        mlt_properties properties = mlt_service_properties( producer );
 
        mlt_position in = mlt_properties_get_position( properties, "in" );