if( lwindow && lwindow->gui ) lwindow->gui->close(0);
if( gwindow && gwindow->gui ) gwindow->gui->close(0);
if( twindow && twindow->is_running() ) twindow->close_window();
if( lwindow && lwindow->gui ) lwindow->gui->close(0);
if( gwindow && gwindow->gui ) gwindow->gui->close(0);
if( twindow && twindow->is_running() ) twindow->close_window();
vwindows.remove_all_objects();
gui->close(0);
if( awindow ) awindow->join();
if( cwindow ) cwindow->join();
if( lwindow ) lwindow->join();
if( twindow ) twindow->join();
vwindows.remove_all_objects();
gui->close(0);
if( awindow ) awindow->join();
if( cwindow ) cwindow->join();
if( lwindow ) lwindow->join();
if( twindow ) twindow->join();
delete awindow; awindow = 0;
delete lwindow; lwindow = 0;
delete twindow; twindow = 0;
delete awindow; awindow = 0;
delete lwindow; lwindow = 0;
delete twindow; twindow = 0;
delete gwindow; gwindow = 0;
// must be last or nouveau chokes
delete cwindow; cwindow = 0;
delete gwindow; gwindow = 0;
// must be last or nouveau chokes
delete cwindow; cwindow = 0;
if( !load_plugin_index(mwindow, index_path) ) return 1;
FILE *fp = fopen(index_path,"w");
if( !fp ) {
if( !load_plugin_index(mwindow, index_path) ) return 1;
FILE *fp = fopen(index_path,"w");
if( !fp ) {
- fprintf(stderr," MWindow::init_plugins: "
- "can't create plugin index: %s\n", index_path);
+ fprintf(stderr,_("MWindow::init_plugins: "
+ "can't create plugin index: %s\n"), index_path);
+void MWindow::show_warning(int *do_warning, const char *text)
+{
+ if( do_warning && !*do_warning ) return;
+ if( !wwindow )
+ wwindow = new WWindow(this);
+ wwindow->show_warning(do_warning, text);
+}
+
for(Track *track=tracks->first; track && !errmsg; track=track->next) {
if( track->data_type != TRACK_VIDEO ) continue;
if( !track->record ) continue;
for(Track *track=tracks->first; track && !errmsg; track=track->next) {
if( track->data_type != TRACK_VIDEO ) continue;
if( !track->record ) continue;
++count;
int64_t units_start = track->to_units(start,0);
int64_t units_end = track->to_units(end,0);
++count;
int64_t units_start = track->to_units(start,0);
int64_t units_end = track->to_units(end,0);
Indexable *indexable = edit1->get_source();
Asset *asset = (Asset *)indexable;
File *file = video_cache->check_out(asset, edl);
Indexable *indexable = edit1->get_source();
Asset *asset = (Asset *)indexable;
File *file = video_cache->check_out(asset, edl);
int64_t edit_length = units_end - units_start;
int64_t edit_start = units_start - edit1->startproject + edit1->startsource;
result = commercials->put_clip(file, edit1->channel,
track->from_units(edit_start), track->from_units(edit_length));
video_cache->check_in(asset);
int64_t edit_length = units_end - units_start;
int64_t edit_start = units_start - edit1->startproject + edit1->startsource;
result = commercials->put_clip(file, edit1->channel,
track->from_units(edit_start), track->from_units(edit_length));
video_cache->check_in(asset);
gui->show_message(string);
if(debug) printf("MWindow::load_filenames %d\n", __LINE__);
gui->show_message(string);
if(debug) printf("MWindow::load_filenames %d\n", __LINE__);
- sprintf(string, "%s's resolution is %dx%d.\nImages with odd dimensions may not decode properly.",
+ sprintf(string, _("%s's resolution is %dx%d.\nImages with odd dimensions may not decode properly."),
- sprintf(string, "%s's index was built for program number %d\n"
- "Playback preference is %d.\n Using program %d.",
+ sprintf(string, _("%s's index was built for program number %d\n"
+ "Playback preference is %d.\n Using program %d."),
new_asset->path, new_asset->program,
edl->session->program_no, new_asset->program);
MainError::show_error(string);
new_asset->path, new_asset->program,
edl->session->program_no, new_asset->program);
MainError::show_error(string);
- "The effect '%s' in file '%s' is not part of your installation of Cinelerra.\n"
- "The project won't be rendered as it was meant and Cinelerra might crash.\n",
- plugin->title,
+ _("The %s '%s' in file '%s' is not part of your installation of Cinelerra.\n"
+ "The project won't be rendered as it was meant and Cinelerra might crash.\n"),
+ "effect", plugin->title,
- "The transition '%s' in file '%s' is not part of your installation of Cinelerra.\n"
- "The project won't be rendered as it was meant and Cinelerra might crash.\n",
- edit->transition->title,
+ _("The %s '%s' in file '%s' is not part of your installation of Cinelerra.\n"
+ "The project won't be rendered as it was meant and Cinelerra might crash.\n"),
+ "transition", edit->transition->title,
"you probably need to be root, or:\n"
"as root, run: echo 0x7fffffff > /proc/sys/kernel/shmmax\n"
"before trying to start cinelerra.\n"
"you probably need to be root, or:\n"
"as root, run: echo 0x7fffffff > /proc/sys/kernel/shmmax\n"
"before trying to start cinelerra.\n"
+ for(int i = 0; i < session->drag_assets->size(); i++)
+ {
+ Indexable *indexable = session->drag_assets->values[i];
+ remove_indexfile(indexable);
+ }
+
+//printf("MWindow::rebuild_indices 1 %s\n", indexable->path);
if(push_undo) undo->update_undo_before();
edl->remove_from_project(session->drag_assets);
edl->remove_from_project(session->drag_clips);
if(push_undo) undo->update_undo_before();
edl->remove_from_project(session->drag_assets);
edl->remove_from_project(session->drag_clips);