From 407f72e8c783f126b60fcfc53f0a790f3aaee636 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Tue, 24 Jun 2008 07:19:32 +0000 Subject: [PATCH] mlt_playlist.c: return error on mlt_playlist_get_clip_info if producer is null. git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1147 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_playlist.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/framework/mlt_playlist.c b/src/framework/mlt_playlist.c index 0e0ba09..0847f39 100644 --- a/src/framework/mlt_playlist.c +++ b/src/framework/mlt_playlist.c @@ -521,7 +521,7 @@ mlt_position mlt_playlist_clip( mlt_playlist this, mlt_whence whence, int index int mlt_playlist_get_clip_info( mlt_playlist this, mlt_playlist_clip_info *info, int index ) { - int error = index < 0 || index >= this->count; + int error = index < 0 || index >= this->count || this->list[ index ]->producer == NULL; memset( info, 0, sizeof( mlt_playlist_clip_info ) ); if ( !error ) { -- 1.7.4.4