x = get_w() / 3 + xs30;
y = y1;
- add_subwindow(title = new BC_Title(x1, y, _("Flags:"), LARGEFONT,
+ add_subwindow(title = new BC_Title(x, y, _("Flags:"), LARGEFONT,
resources->text_default));
y += title->get_h() + ys10;
y1 = y;
if( !edl->have_video() ) return 1;
Preferences *preferences = mwindow->preferences;
- char filename[BCTEXTLEN];
+ char filename[BCTEXTLEN], snapshot_path[BCTEXTLEN];
static const char *exts[] = { "png", "jpg", "tif", "ppm" };
time_t tt; time(&tt);
struct tm tm; localtime_r(&tt,&tm);
+ File::getenv_path(snapshot_path, preferences->snapshot_path);
snprintf(filename,sizeof(filename),"%s/%s_%04d%02d%02d-%02d%02d%02d.%s",
- preferences->snapshot_path, _("snap"),
+ snapshot_path, _("snap"),
1900+tm.tm_year,1+tm.tm_mon,tm.tm_mday,
tm.tm_hour,tm.tm_min,tm.tm_sec, exts[mode]);
char *asset_path = FileSystem::basepath(filename);
MWindow *mwindow = grab_thread->mwindow;
Preferences *preferences = mwindow->preferences;
- char filename[BCTEXTLEN];
+ char filename[BCTEXTLEN], snapshot_path[BCTEXTLEN];
static const char *exts[] = { "png", "jpg", "tif", "ppm" };
time_t tt; time(&tt);
struct tm tm; localtime_r(&tt,&tm);
+ File::getenv_path(snapshot_path, preferences->snapshot_path);
snprintf(filename,sizeof(filename),"%s/%s_%04d%02d%02d-%02d%02d%02d.%s",
- preferences->snapshot_path, _("grab"),
+ snapshot_path, _("grab"),
1900+tm.tm_year,1+tm.tm_mon,tm.tm_mday,
tm.tm_hour,tm.tm_min,tm.tm_sec, exts[mode]);
char *asset_path = FileSystem::basepath(filename);
this->picon = picon;
this->length = length;
temp = 0;
+ broken = 0;
}
AssetVIcon::~AssetVIcon()
VFrame *AssetVIcon::frame()
{
+ if( broken ) return 0;
AssetVIconThread *avt = picon->gui->vicon_thread;
Indexable *idxbl = picon->indexable;
Asset *asset = idxbl && idxbl->is_asset ? (Asset *)idxbl : 0;
if( seq_no >= images.size() ) {
MWindow *mwindow = picon->mwindow;
File *file = mwindow->video_cache->check_out(asset, mwindow->edl, 1);
- if( !file ) return 0;
+ if( !file ) {
+ broken = 1;
+ return 0;
+ }
if( temp && (temp->get_w() != asset->width || temp->get_h() != asset->height) ) {
delete temp; temp = 0;
}
else {
edl = (EDL *)indexable;
cp += sprintf(cp, "edl:");
- set_color(get_color() ^ 0xCC9955);
+// set_color(get_color() ^ 0xCC9955);
}
fs.extract_name(cp, indexable->path);
set_text(name);
AssetPicon *picon;
VFrame *temp;
int64_t length;
+ int broken;
VFrame *frame();
int64_t set_seq_no(int64_t no);
N_("Concatenate to existing tracks"),
N_("Paste over selection/at insertion point"),
N_("Create new resources only"),
- N_("EDL as Clip"),
- N_("EDL as Nested"),
- N_("EDL as Reference"),
+ N_("EDL"),
+ N_("Nested"),
+ N_("Reference"),
};
}
#endif
mwindow->reset_android_remote();
+ if( !cwindow_remote_handler )
+ cwindow_remote_handler = (RemoteHandler*)
+ new CWindowKeyEvHandler(mwindow->gui->remote_control);
+ if( !record_remote_handler )
+ record_remote_handler = (RemoteHandler*)
+ new RecordKeyEvHandler(mwindow->gui->remote_control);
if(debug) printf("MWindowGUI::create_objects %d\n", __LINE__);
int x1 = get_w() - MainShBtns::calculate_w(-1, 0, -1) - xS(5);
vicon_color_mode = VICON_COLOR_MODE_LOW;
theme[0] = 0;
plugin_icons[0] = 0;
- strcpy(snapshot_path, "/tmp");
+ strcpy(snapshot_path, DEFAULT_SNAPSHOT_PATH);
use_renderfarm = 0;
force_uniprocessor = 0;
renderfarm_port = DEAMON_PORT;
strcpy(plugin_icons, DEFAULT_PICON);
defaults->get("THEME", theme);
defaults->get("PLUGIN_ICONS", plugin_icons);
- strcpy(snapshot_path, "/tmp");
+ strcpy(snapshot_path, DEFAULT_SNAPSHOT_PATH);
defaults->get("SNAPSHOT_PATH", snapshot_path);
for( int i=0; i<MAXCHANNELS; ++i ) {
#define LAYOUTS_MAX 4
#define DEFAULT_LV2_PATH CINDAT_DIR "/lv2"
#define DEFAULT_NESTED_PROXY_PATH NESTED_DIR
+#define DEFAULT_SNAPSHOT_PATH SNAP_DIR
#define FFMPEG_EARLY_TIP _("Currently: Try FFMpeg first\n Click to: Try FFMpeg last")
#define FFMPEG_LATE_TIP _("Currently: Try FFMpeg last\n Click to: Try FFMpeg first")
CHECK_WITH([ladspa-dir],[ladspa install dir],[LADSPA_DIR],[auto])
CHECK_WITH([config-dir],[.bcast config dir],[CONFIG_DIR],[$$HOME/.bcast5])
CHECK_WITH([nested-dir],[nested proxy dir],[NESTED_DIR],[$$HOME/Videos])
+CHECK_WITH([snap-dir],[snapshot/grabshot dir],[SNAP_DIR],[$$HOME/Pictures])
CHECK_WITH([browser],[cin_browser path],[CIN_BROWSER],[firefox])
CHECK_WITH([git-ffmpeg],[git ffmpeg using url],[GIT_FFMPEG],[no])
CHECK_WITH([noelision],[use noelision/libpthread],[NOELISION],[auto])
echo " using: with-cindat = $WANT_CINDAT_DIR"
echo " using: with-config-dir = $WANT_CONFIG_DIR"
echo " using: with-nested-dir = $WANT_NESTED_DIR"
+echo " using: with-snap-dir = $WANT_SNAP_DIR"
echo " using: with-browser = $WANT_CIN_BROWSER"
echo " using: with-plugin-dir = $WANT_PLUGIN_DIR"
echo " using: with-ladspa-dir = $WANT_LADSPA_DIR"
echo "CFLAGS += '-DCINDAT_DIR=\"$WANT_CINDAT_DIR\"'"
echo "CFLAGS += '-DCONFIG_DIR=\"$WANT_CONFIG_DIR\"'"
echo "CFLAGS += '-DNESTED_DIR=\"$WANT_NESTED_DIR\"'"
+echo "CFLAGS += '-DSNAP_DIR=\"$WANT_SNAP_DIR\"'"
echo "CFLAGS += '-DPLUGIN_DIR=\"$WANT_PLUGIN_DIR\"'"
echo "CFLAGS += '-DLOCALE_DIR=\"$WANT_LOCALE_DIR\"'"
echo "CFLAGS += '-DLADSPA_DIR=\"$WANT_LADSPA_DIR\"'"
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file
+++ /dev/null
-loadmode_nested.png
\ No newline at end of file