X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ftracks.C;h=8db132bc1eff7c9c50838b9147d46d9745c57bef;hb=38cb4182e11e57fc426bede3825e825e9d61433b;hp=e2abde91f9cf6b94362bb28ba28c0dd389f73e27;hpb=e13e0a987ad66b8274fcbaddc71eac583ea80bea;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/tracks.C b/cinelerra-5.1/cinelerra/tracks.C index e2abde91..8db132bc 100644 --- a/cinelerra-5.1/cinelerra/tracks.C +++ b/cinelerra-5.1/cinelerra/tracks.C @@ -406,7 +406,8 @@ int Tracks::total_of(int type) for(Track *current = first; current; current = NEXT) { long unit_start = current->to_units(edl->local_session->get_selectionstart(1), 0); - Auto *mute_keyframe = current->automation->autos[AUTOMATION_MUTE]-> + Auto *mute_keyframe = 0; + current->automation->autos[AUTOMATION_MUTE]-> get_prev_auto(unit_start, PLAY_FORWARD, mute_keyframe); IntAuto *mute_auto = (IntAuto *)mute_keyframe;