viewer window playback tweaks
[goodguy/history.git] / cinelerra-5.1 / cinelerra / new.C
index 14df0a12900a26add674d579d44724b05a327268..58e6eca9d3a463d619a68f9294db76fe2e35525f 100644 (file)
@@ -94,25 +94,13 @@ void New::create_new_edl()
 
 int New::create_new_project()
 {
-       mwindow->cwindow->playback_engine->que->send_command(STOP,
-               CHANGE_NONE, 0, 0);
-
-       for( int i=0; i<mwindow->vwindows.size(); ++i ) {
-               VWindow *vwindow = mwindow->vwindows.get(i);
-               if( !vwindow->is_running() ) continue;
-               vwindow->playback_engine->que->send_command(STOP, CHANGE_NONE, 0, 0);
-               vwindow->playback_engine->interrupt_playback(0);
-       }
-
-       mwindow->cwindow->playback_engine->interrupt_playback(0);
-
+       mwindow->stop_playback(0);
        mwindow->gui->lock_window();
        mwindow->reset_caches();
 
        memcpy(new_edl->session->achannel_positions,
-               &mwindow->preferences->channel_positions[
-                       MAXCHANNELS * (new_edl->session->audio_channels - 1)],
-               sizeof(int) * MAXCHANNELS);
+               &mwindow->preferences->channel_positions[new_edl->session->audio_channels - 1],
+               sizeof(new_edl->session->achannel_positions));
        new_edl->session->boundaries();
        new_edl->create_default_tracks();
 
@@ -612,7 +600,7 @@ int FrameRatePulldown::handle_event()
 
 FrameSizePulldown::FrameSizePulldown(Theme *theme,
                BC_TextBox *output_w, BC_TextBox *output_h, int x, int y)
- : BC_ListBox(x, y, 150, 250, LISTBOX_TEXT,
+ : BC_ListBox(x, y, 180, 250, LISTBOX_TEXT,
        &theme->frame_sizes, 0, 0, 1, 0, 1)
 {
        this->theme = theme;