summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_video_dialog.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-24 03:28:07 +0100
committerRobin Gareus <robin@gareus.org>2015-03-24 03:28:07 +0100
commit5bbea60546967a315a14ff5f53193a7171271d1b (patch)
tree7eefb0c7f374b9fa71dedaf61c2253cd433f5c5b /gtk2_ardour/export_video_dialog.cc
parentd44273e8a4e91f462883132ae6ff68d57e375fcd (diff)
another potential fix for video-export filename/crash
Diffstat (limited to 'gtk2_ardour/export_video_dialog.cc')
-rw-r--r--gtk2_ardour/export_video_dialog.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/export_video_dialog.cc b/gtk2_ardour/export_video_dialog.cc
index 22a59326e9..75986a72f5 100644
--- a/gtk2_ardour/export_video_dialog.cc
+++ b/gtk2_ardour/export_video_dialog.cc
@@ -113,7 +113,7 @@ ExportVideoDialog::ExportVideoDialog ()
HBox* path_hbox;
/* check if ffmpeg can be found */
- _transcoder = new TranscodeFfmpeg("");
+ _transcoder = new TranscodeFfmpeg(X_(""));
if (!_transcoder->ffexec_ok()) {
l = manage (new Label (_("No ffprobe or ffmpeg executables could be found on this system. Video Export is not possible until you install those tools. See the Log window for more information."), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false));
l->set_line_wrap();
@@ -381,8 +381,8 @@ ExportVideoDialog::apply_state (TimeSelection &tme, bool range)
LocaleGuard lg (X_("C"));
XMLNode* node = _session->extra_xml (X_("Videotimeline"));
+ bool filenameset = false;
if (node) {
- bool filenameset = false;
if (node->property(X_("OriginalVideoFile"))) {
std::string filename = node->property(X_("OriginalVideoFile"))->value();
if (Glib::file_test(filename, Glib::FILE_TEST_EXISTS)) {
@@ -407,9 +407,9 @@ ExportVideoDialog::apply_state (TimeSelection &tme, bool range)
filenameset = true;
}
}
- if (!filenameset) {
- invid_path_entry.set_text (X_(""));
- }
+ }
+ if (!filenameset) {
+ invid_path_entry.set_text (X_(""));
}
node = _session->extra_xml (X_("Videoexport"));