fix potential crash when video tools are N/A
authorRobin Gareus <robin@gareus.org>
Wed, 25 Mar 2015 02:39:47 +0000 (03:39 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 25 Mar 2015 02:39:47 +0000 (03:39 +0100)
gtk2_ardour/export_video_dialog.cc

index 75986a72f59c3ce3f4c4287ea63260a01884bd43..7e01f5b9ad1a132eb4e6e37114bbb0c087262bce 100644 (file)
@@ -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&