From: ddennedy Date: Tue, 24 Jun 2008 07:19:32 +0000 (+0000) Subject: mlt_playlist.c: return error on mlt_playlist_get_clip_info if producer is null. X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=407f72e8c783f126b60fcfc53f0a790f3aaee636;p=melted 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 --- 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 ) {