]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_frame.c
Corrects position and test_audio handling
[mlt] / src / framework / mlt_frame.c
index 4fb656c1e83c0ab3c440d708001fd123e5a226f9..211d5c4afafb8804fd64f5057272a3bbc10da686 100644 (file)
@@ -313,8 +313,9 @@ uint8_t *mlt_frame_get_alpha_mask( mlt_frame this )
 int mlt_frame_get_audio( mlt_frame this, int16_t **buffer, mlt_audio_format *format, int *frequency, int *channels, int *samples )
 {
        mlt_properties properties = mlt_frame_properties( this );
+       int hide = mlt_properties_get_int( properties, "test_audio" );
 
-       if ( this->get_audio != NULL )
+       if ( hide == 0 && this->get_audio != NULL )
        {
                this->get_audio( this, buffer, format, frequency, channels, samples );
        }