X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Flocalsession.C;h=c8cd9041a8019711706d96e4f8418870b757e92b;hb=9a75aafbc51be29b49351a51e9084bb34d255c0d;hp=7e1f50eaeb030eede38dd7bff30822f6e2d6d66d;hpb=fbdd13b462256ed4f3b35dc114385fe0b0de0dcd;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/localsession.C b/cinelerra-5.1/cinelerra/localsession.C index 7e1f50ea..c8cd9041 100644 --- a/cinelerra-5.1/cinelerra/localsession.C +++ b/cinelerra-5.1/cinelerra/localsession.C @@ -86,7 +86,7 @@ LocalSession::LocalSession(EDL *edl) automation_maxs[AUTOGROUPTYPE_AUDIO_FADE] = 6; automation_mins[AUTOGROUPTYPE_VIDEO_FADE] = 0; automation_maxs[AUTOGROUPTYPE_VIDEO_FADE] = 100; - automation_mins[AUTOGROUPTYPE_SPEED] = 0.005; + automation_mins[AUTOGROUPTYPE_SPEED] = SPEED_MIN; automation_maxs[AUTOGROUPTYPE_SPEED] = 5.000; automation_mins[AUTOGROUPTYPE_INT255] = 0; automation_maxs[AUTOGROUPTYPE_INT255] = 255; @@ -296,7 +296,9 @@ void LocalSession::load_xml(FileXML *file, unsigned long load_flags) for (int i = 0; i < AUTOGROUPTYPE_COUNT; i++) { if (!Automation::autogrouptypes_fixedrange[i]) { automation_mins[i] = file->tag.get_property(xml_autogrouptypes_titlesmin[i],automation_mins[i]); + AUTOMATIONCLAMPS(automation_mins[i], i); automation_maxs[i] = file->tag.get_property(xml_autogrouptypes_titlesmax[i],automation_maxs[i]); + AUTOMATIONCLAMPS(automation_maxs[i], i); } } floatauto_type = file->tag.get_property("FLOATAUTO_TYPE", floatauto_type); @@ -361,7 +363,9 @@ int LocalSession::load_defaults(BC_Hash *defaults) for (int i = 0; i < AUTOGROUPTYPE_COUNT; i++) { if (!Automation::autogrouptypes_fixedrange[i]) { automation_mins[i] = defaults->get(xml_autogrouptypes_titlesmin[i], automation_mins[i]); + AUTOMATIONCLAMPS(automation_mins[i], i); automation_maxs[i] = defaults->get(xml_autogrouptypes_titlesmax[i], automation_maxs[i]); + AUTOMATIONCLAMPS(automation_maxs[i], i); } }