- if ( mlt_properties_get( temp, "in" ) != NULL || mlt_properties_get( temp, "out" ) != NULL )
- {
- mlt_playlist_append_io( MLT_PLAYLIST( parent ), producer,
- mlt_properties_get_position( temp, "in" ),
- mlt_properties_get_position( temp, "out" ) );
- }
- else
- {
- mlt_playlist_append( MLT_PLAYLIST( parent ), producer );
- }
+ mlt_position in = -1;
+ mlt_position out = -1;
+ if ( mlt_properties_get( temp, "in" ) )
+ in = mlt_properties_get_position( temp, "in" );
+ if ( mlt_properties_get( temp, "out" ) )
+ out = mlt_properties_get_position( temp, "out" );
+ mlt_playlist_append_io( MLT_PLAYLIST( parent ), producer, in, out );