#include "preferences.h"
#include "videodevice.inc"
+#ifdef FFMPEG3
+#define url filename
+#endif
+
FileFFMPEG::FileFFMPEG(Asset *asset, File *file)
: FileBase(asset, file)
{
this->asset = asset;
this->edl = edl;
preset_popup = 0;
+ ff_options_dialog = 0;
+ pixel_format = 0;
bitrate = 0;
quality = 0;
FFMPEGConfigVideo::~FFMPEGConfigVideo()
{
- delete ff_options_dialog;
lock_window("FFMPEGConfigVideo::~FFMPEGConfigVideo");
- if(preset_popup) delete preset_popup;
+ delete ff_options_dialog;
+ delete pixel_format;
+ delete preset_popup;
presets.remove_all_objects();
unlock_window();
}
}
FileSystem fs;
- int64_t file_bytes = fs.get_size(ff->fmt_ctx->filename);
+ int64_t file_bytes = fs.get_size(ff->fmt_ctx->url);
char *index_path = index_file->index_filename;
int canceled = 0;
void FFOptionsWindow::create_objects()
{
+ lock_window("FFOptionsWindow::create_objects");
BC_Title *title;
int x0 = 10, y0 = 10;
int x = x0, y = y0;
options.initialize(this, FF_KIND_CODEC);
draw();
show_window(1);
+ unlock_window();
}
void FFOptionsWindow::draw()