X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_frame.c;h=1c36cf0d66f3df84d3a810e88d6bb54494eff10c;hb=6336039a203c6496691784682f9ad56eb13abcc3;hp=f2fad14caaca6f9cde5849f2e7a0949e962a3579;hpb=510ad0d31115a6a1522911c38555a32d8b0d3945;p=melted diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index f2fad14..1c36cf0 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -77,7 +77,15 @@ mlt_properties mlt_frame_properties( mlt_frame this ) int mlt_frame_is_test_card( mlt_frame this ) { - return this->stack_get_image_size == 0; + return ( this->stack_get_image_size == 0 && mlt_properties_get_data( mlt_frame_properties( this ), "image", NULL ) == NULL ); +} + +/** Check if we have a way to derive something than test audio. +*/ + +int mlt_frame_is_test_audio( mlt_frame this ) +{ + return this->get_audio == NULL; } /** Get the aspect ratio of the frame.