X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2Fsrc%2Fmodules%2Fcore%2Ftransition_mix.c;h=fda1d1a80be571f860cd69dd22b61eed3a333ffc;hb=632e745ce62c96c1efc31d66067586fda8e939e0;hp=4d32de759e9413109909bbff8dc8c9f82c898550;hpb=8691b6464c35a77ae001b9843891a90dd9fd3d50;p=melted diff --git a/mlt/src/modules/core/transition_mix.c b/mlt/src/modules/core/transition_mix.c index 4d32de7..fda1d1a 100644 --- a/mlt/src/modules/core/transition_mix.c +++ b/mlt/src/modules/core/transition_mix.c @@ -42,7 +42,9 @@ static int transition_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_fo // Restore the original get_audio frame->get_audio = mlt_properties_get_data( a_props, "mix.get_audio", NULL ); - double mix = mlt_properties_get_double( b_props, "audio.mix" ); + double mix = 0.5; + if ( mlt_properties_get( b_props, "audio.mix" ) != NULL ) + mix = mlt_properties_get_double( b_props, "audio.mix" ); mlt_frame_mix_audio( frame, b_frame, mix, buffer, format, frequency, channels, samples ); // Push the b_frame back on for get_image