X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fvwindow.C;h=2f96447c4674981ebbc5d21438b8fd322e9f267e;hb=4b6c39e6cf4a3fd9c1b347db6de686ab55d6cac8;hp=d65fd59775f8a44cdcdb2a7503b709453ff87af8;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/vwindow.C b/cinelerra-5.1/cinelerra/vwindow.C index d65fd597..2f96447c 100644 --- a/cinelerra-5.1/cinelerra/vwindow.C +++ b/cinelerra-5.1/cinelerra/vwindow.C @@ -284,43 +284,6 @@ void VWindow::change_source(EDL *edl) gui->change_source(edl, _("Viewer")); } -void VWindow::change_source(char *folder, int item) -{ -//printf("VWindow::change_source %d\n", __LINE__); - int result = 0; - if(!running()) return; -// Search EDLs - if(!strcasecmp(folder, CLIP_FOLDER)) - { - if(item < mwindow->edl->clips.total) - { - change_source(mwindow->edl->clips.values[item]); - result = 1; - } - } - else -// Search media - if(!strcasecmp(folder, MEDIA_FOLDER)) - { - if(item < mwindow->edl->assets->total()) - { - change_source(mwindow->edl->assets->get_item_number(item)); - result = 1; - } - } - else -// Search extra clip folders - { - } - - if(!result) - { - delete_source(1, 1); - } -} - - - void VWindow::goto_start() { @@ -371,14 +334,6 @@ void VWindow::update_position(int change_type, 1); double position = edl->local_session->get_selectionstart(1); - Asset *asset = edl->assets->first; - if( asset && asset->tcstart ) { - double rate = asset->video_data ? asset->frame_rate : - asset->audio_data ? asset->sample_rate : 0; - if( rate > 0 ) - position += asset->tcstart / rate; - } - if(lock_window) gui->lock_window("VWindow::update_position"); gui->clock->update(position); if(lock_window) gui->unlock_window();