producer( new Producer( info->producer ) ),
cut( new Producer( info->cut ) ),
start( info->start ),
- resource( strdup( info->resource ) ),
+ resource( info->resource? strdup( info->resource ) : 0 ),
frame_in( info->frame_in ),
frame_out( info->frame_out ),
frame_count( info->frame_count ),
}
Playlist::Playlist( Playlist &playlist ) :
+ Mlt::Producer( playlist ),
instance( playlist.get_playlist( ) )
{
inc_ref( );
ClipInfo *Playlist::clip_info( int index, ClipInfo *info )
{
mlt_playlist_clip_info clip_info;
- mlt_playlist_get_clip_info( get_playlist( ), &clip_info, index );
+ if ( mlt_playlist_get_clip_info( get_playlist( ), &clip_info, index ) )
+ return NULL;
if ( info == NULL )
return new ClipInfo( &clip_info );
info->update( &clip_info );