]> git.sesse.net Git - mlt/blobdiff - src/modules/dv/producer_libdv.c
Remaining audio handling switched to stacks; Minor corrections to compositing and...
[mlt] / src / modules / dv / producer_libdv.c
index 0faa05a64466994ece38df1fa9afafd64967e9ef..9516c10339454559f025dd00e19ae9093ead0896 100644 (file)
@@ -374,7 +374,6 @@ static int producer_get_audio( mlt_frame this, int16_t **buffer, mlt_audio_forma
        else
        {
                // No audio available on the frame, so get test audio (silence)
-               this->get_audio = NULL;
                mlt_frame_get_audio( this, buffer, format, frequency, channels, samples );
        }
 
@@ -424,7 +423,7 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i
                        dv_format_wide( dv_decoder ) ? ( this->is_pal ? 118.0/81.0 : 40.0/33.0 ) : ( this->is_pal ? 59.0/54.0 : 10.0/11.0 ) );
 
                // Hmm - register audio callback
-               ( *frame )->get_audio = producer_get_audio;
+               mlt_frame_push_audio( *frame, producer_get_audio );
 
                // Push the quality string
                mlt_frame_push_service( *frame, mlt_properties_get( MLT_PRODUCER_PROPERTIES( producer ), "quality" ) );