mlt_frame mlt_transition_process( mlt_transition this, mlt_frame a_frame, mlt_frame b_frame )
{
- if ( this->process == NULL )
+ if ( this->process == NULL || b_frame == NULL || ( mlt_frame_is_test_card( b_frame ) && mlt_frame_is_test_audio( b_frame ) ) )
return a_frame;
+ else if ( a_frame == NULL || ( mlt_frame_is_test_card( a_frame ) && mlt_frame_is_test_audio( a_frame ) ) )
+ return b_frame;
else
return this->process( this, a_frame, b_frame );
}
{
// Process the transition
*frame = mlt_transition_process( this, this->a_frame, this->b_frame );
+ if ( *frame == this->b_frame )
+ {
+ mlt_frame t = this->a_frame;
+ this->a_frame = this->b_frame;
+ this->b_frame = t;
+ }
if ( !mlt_properties_get_int( mlt_frame_properties( this->a_frame ), "test_image" ) )
mlt_properties_set_int( mlt_frame_properties( this->b_frame ), "test_image", 1 );
if ( !mlt_properties_get_int( mlt_frame_properties( this->a_frame ), "test_audio" ) )