]> git.sesse.net Git - mlt/commitdiff
mlt_playlist.c: return error on mlt_playlist_get_clip_info if producer is null.
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 24 Jun 2008 07:19:32 +0000 (07:19 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 24 Jun 2008 07:19:32 +0000 (07:19 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1147 d19143bc-622f-0410-bfdd-b5b2a6649095

src/framework/mlt_playlist.c

index 0e0ba09ebcfa73fb7b0aa3ebd0f0f27c2c390601..0847f393768b5ee58638ebd79ff9eb312345514b 100644 (file)
@@ -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 )
        {