delete [] cp;
}
}
- if( strcmp(apath, tpath) ) result = 1;
+ if( strcmp(apath, tpath) ) result = 0;
delete [] apath;
delete [] tpath;
delete [] out_path;
}
- if(result && format == FILE_FFMPEG)
- result = !strcmp(fformat, asset.fformat);
+ if(result && format == FILE_FFMPEG && strcmp(fformat, asset.fformat) )
+ result = 0;
if(test_audio && result)
{
if(indexable->is_asset) {
asset = (Asset*)indexable;
- if( changed_params->equivalent(*asset, 1, 1, mwindow->edl) )
+ if( !changed_params->equivalent(*asset, 1, 1, mwindow->edl) )
changed = 1;
}
else {
}
mwindow->gui->unlock_window();
//printf("AssetEdit::handle_close_event %d\n", __LINE__);
+ mwindow->awindow->gui->update_picon(indexable);
mwindow->awindow->gui->async_update_assets();
mwindow->restart_brender();
//printf("AWindowGUI::update_asset_list 7 %d\n", assets.total);
}
+void AWindowGUI::update_picon(Indexable *indexable)
+{
+//printf("AWindowGUI::update_asset_list 1\n");
+ VIcon *vicon = 0;
+ for(int i = 0; i < assets.total; i++) {
+ AssetPicon *picon = (AssetPicon*)assets.values[i];
+ if( picon->indexable == indexable ||
+ picon->edl == (EDL *)indexable ) {
+ char name[BCTEXTLEN];
+ FileSystem fs;
+ fs.extract_name(name, indexable->path);
+ picon->set_text(name);
+ vicon = picon->vicon;
+ break;
+ }
+ }
+ if( vicon ) {
+ stop_vicon_drawing();
+ vicon->clear_images();
+ vicon->reset(indexable->get_frame_rate());
+ start_vicon_drawing();
+ }
+}
+
void AWindowGUI::sort_assets()
{
//printf("AWindowGUI::sort_assets 1 %s\n", mwindow->edl->session->current_folder);
int load_defaults(BC_Hash *defaults);
void start_vicon_drawing();
void stop_vicon_drawing();
+ void update_picon(Indexable *indexable);
MWindow *mwindow;
AWindow *awindow;
#include <string.h>
EditPopup::EditPopup(MWindow *mwindow, MWindowGUI *gui)
- : BC_PopupMenu(0,
- 0,
- 0,
- "",
- 0)
+ : BC_PopupMenu(0, 0, 0, "", 0)
{
this->mwindow = mwindow;
this->gui = gui;
add_item(new EditPopupAddTrack(mwindow, this));
// add_item(new EditPopupTitle(mwindow, this));
resize_option = 0;
+ matchsize_option = 0;
}
int EditPopup::update(Track *track, Edit *edit)
void ResizeTrackThread::update()
{
- mwindow->resize_track(track, w, h);
+ if( mwindow->edl->tracks->track_exists(track) )
+ mwindow->resize_track(track, w, h);
}
int ResizeAssetButton::handle_event()
{
- resize_asset_thread = new ResizeAssetThread(fwindow);
+ if( !resize_asset_thread )
+ resize_asset_thread = new ResizeAssetThread(fwindow);
resize_asset_thread->start_window(fwindow->asset_edit->changed_params);
return 1;
}
{
use_title = 0;
deactivate();
+ delete menu_popup;
for(int i = 0; i < TOTAL_IMAGES; i++)
{
if(images[i]) delete images[i];
int64_t vframes() { return images.size(); }
void reset() { seq_no = 0; cycle_start = 0; age = 0; }
+ void reset(double rate) { reset(); frame_rate = rate; }
void clear_images() { images.remove_all_objects(); }
virtual int64_t set_seq_no(int64_t no) { return seq_no = no; }