mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
proper default setup and fallbacks for video on windows
This commit is contained in:
parent
f5f89d8c7e
commit
bec521c6a7
4 changed files with 20 additions and 2 deletions
|
|
@ -3653,7 +3653,13 @@ ARDOUR_UI::start_video_server (Gtk::Window* float_window, bool popup_msg)
|
|||
|
||||
std::string icsd_exec = video_server_dialog->get_exec_path();
|
||||
std::string icsd_docroot = video_server_dialog->get_docroot();
|
||||
if (icsd_docroot.empty()) {icsd_docroot = X_("/");}
|
||||
if (icsd_docroot.empty()) {
|
||||
#ifndef PLATFORM_WINDOWS
|
||||
icsd_docroot = X_("/");
|
||||
#else
|
||||
icsd_docroot = X_("C:\\");
|
||||
#endif
|
||||
}
|
||||
|
||||
GStatBuf sb;
|
||||
if (g_lstat (icsd_docroot.c_str(), &sb) != 0 || !S_ISDIR(sb.st_mode)) {
|
||||
|
|
@ -3687,7 +3693,7 @@ ARDOUR_UI::start_video_server (Gtk::Window* float_window, bool popup_msg)
|
|||
argp[8] = 0;
|
||||
stop_video_server();
|
||||
|
||||
if (icsd_docroot == X_("/")) {
|
||||
if (icsd_docroot == X_("/") || icsd_docroot == X_("C:\\")) {
|
||||
Config->set_video_advanced_setup(false);
|
||||
} else {
|
||||
std::ostringstream osstream;
|
||||
|
|
|
|||
|
|
@ -105,7 +105,11 @@ VideoUtils::video_get_docroot (ARDOUR::RCConfiguration* config)
|
|||
if (config->get_video_advanced_setup()) {
|
||||
return config->get_video_server_docroot();
|
||||
}
|
||||
#ifndef PLATFORM_WINDOWS
|
||||
return X_("/");
|
||||
#else
|
||||
return X_("C:\\");
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string
|
||||
|
|
|
|||
|
|
@ -151,7 +151,11 @@ VideoServerDialog::VideoServerDialog (Session* s)
|
|||
if (Config->get_video_advanced_setup()){
|
||||
vbox->pack_start (*docroot_hbox, false, false);
|
||||
} else {
|
||||
#ifndef PLATFORM_WINDOWS
|
||||
docroot_entry.set_text(X_("/"));
|
||||
#else
|
||||
docroot_entry.set_text(X_("C:\\"));
|
||||
#endif
|
||||
listenport_spinner.set_sensitive(false);
|
||||
}
|
||||
vbox->pack_start (*options_box, false, true);
|
||||
|
|
|
|||
|
|
@ -205,6 +205,10 @@ CONFIG_VARIABLE (std::string, donate_url, "donate-url", "http://ardour.org/donat
|
|||
/* video timeline configuration */
|
||||
CONFIG_VARIABLE (bool, video_advanced_setup, "video-advanced-setup", false)
|
||||
CONFIG_VARIABLE (std::string, video_server_url, "video-server-url", "http://localhost:1554")
|
||||
#ifndef PLATFORM_WINDOWS
|
||||
CONFIG_VARIABLE (std::string, video_server_docroot, "video-server-docroot", "/")
|
||||
#else
|
||||
CONFIG_VARIABLE (std::string, video_server_docroot, "video-server-docroot", "C:\\")
|
||||
#endif
|
||||
CONFIG_VARIABLE (bool, show_video_export_info, "show-video-export-info", true)
|
||||
CONFIG_VARIABLE (bool, show_video_server_dialog, "show-video-server-dialog", false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue