diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-25 03:39:47 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-25 03:39:47 +0100 |
commit | 29abc678dd338a65dd7240176e565678efc56d67 (patch) | |
tree | b295576989787f744c25a44dcff58ff081976d77 /gtk2_ardour/export_video_dialog.cc | |
parent | 96964692899313858f7a21263a3174a079a5f3c2 (diff) |
fix potential crash when video tools are N/A
Diffstat (limited to 'gtk2_ardour/export_video_dialog.cc')
-rw-r--r-- | gtk2_ardour/export_video_dialog.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/export_video_dialog.cc b/gtk2_ardour/export_video_dialog.cc index 75986a72f5..7e01f5b9ad 100644 --- a/gtk2_ardour/export_video_dialog.cc +++ b/gtk2_ardour/export_video_dialog.cc @@ -83,6 +83,7 @@ ExportVideoDialog::ExportVideoDialog () , invid_browse_button (_("Browse")) , transcode_button (_("Export")) , abort_button (_("Abort")) + , progress_box (0) , scale_checkbox (_("Scale Video (W x H):")) , scale_aspect (_("Retain Aspect")) , width_adjustment (768, 128, 1920, 1, 16, 0) @@ -486,7 +487,9 @@ ExportVideoDialog::apply_state (TimeSelection &tme, bool range) _suspend_dirty = false; show_all_children (); - progress_box->hide(); + if (progress_box) { + progress_box->hide(); + } } XMLNode& |