batchrender hang on close, apply pref saves defaults, overwrite/splice tweaks, specif...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / edlsession.C
index 5c663922f7b367720d7afe404fe2ea4a5b25406c..bfb85a75044c7bec40a2d3a015c5104af47b3166 100644 (file)
@@ -71,9 +71,9 @@ EDLSession::EDLSession(EDL *edl)
        cwindow_scrollbars = 0;
        cwindow_xscroll = cwindow_yscroll = 0;
        cwindow_zoom = 1.0;
-       cwindow_click2play = 1;
-       strcpy(default_atransition, "");
-       strcpy(default_vtransition, "");
+       cwindow_click2play = 0;
+       strcpy(default_atransition, INIT_ATRANSITION);
+       strcpy(default_vtransition, INIT_VTRANSITION);
        default_transition_length = 1.0;
        edit_handle_mode[0] = MOVE_ALL_EDITS;
        edit_handle_mode[1] = MOVE_ONE_EDIT;
@@ -122,6 +122,8 @@ EDLSession::EDLSession(EDL *edl)
        scrub_speed = 2.;
        show_assets = 1;
        show_titles = 1;
+       si_useduration = 1;
+       si_duration = 3;
        test_playback_edits = 1;
        time_format = TIME_HMSF;
        nudge_format = 1;
@@ -141,7 +143,7 @@ EDLSession::EDLSession(EDL *edl)
        view_follows_playback = 1;
        vwindow_meter = 0;
        vwindow_zoom = 1.;
-       vwindow_click2play = 1;
+       vwindow_click2play = 0;
 
        playback_config = new PlaybackConfig;
 }
@@ -245,10 +247,10 @@ int EDLSession::load_defaults(BC_Hash *defaults)
        cwindow_xscroll = defaults->get("CWINDOW_XSCROLL", 0);
        cwindow_yscroll = defaults->get("CWINDOW_YSCROLL", 0);
        cwindow_zoom = defaults->get("CWINDOW_ZOOM", (float)1);
-       cwindow_click2play = defaults->get("CWINDOW_CLICK2PLAY", 1);
-       sprintf(default_atransition, _("Crossfade"));
+       cwindow_click2play = defaults->get("CWINDOW_CLICK2PLAY", 0);
+       sprintf(default_atransition, INIT_ATRANSITION);
        defaults->get("DEFAULT_ATRANSITION", default_atransition);
-       sprintf(default_vtransition, _("Dissolve"));
+       sprintf(default_vtransition, INIT_VTRANSITION);
        defaults->get("DEFAULT_VTRANSITION", default_vtransition);
        default_transition_length = defaults->get("DEFAULT_TRANSITION_LENGTH", (double)1);
        edit_handle_mode[0] = defaults->get("EDIT_HANDLE_MODE0", MOVE_ALL_EDITS);
@@ -328,7 +330,7 @@ int EDLSession::load_defaults(BC_Hash *defaults)
        view_follows_playback = defaults->get("VIEW_FOLLOWS_PLAYBACK", 1);
        vwindow_meter = defaults->get("VWINDOW_METER", 0);
        vwindow_zoom = defaults->get("VWINDOW_ZOOM", (float)1);
-       vwindow_click2play = defaults->get("VWINDOW_CLICK2PLAY", 1);
+       vwindow_click2play = defaults->get("VWINDOW_CLICK2PLAY", 0);
 
        decode_subtitles = defaults->get("DECODE_SUBTITLES", decode_subtitles);
        subtitle_number = defaults->get("SUBTITLE_NUMBER", subtitle_number);