Defensive programming: GC_VIDEO_*

.. It seems like a good idea to provide a default value,
   or you could just add a different #else case, e.g.,
   .arg("no GC_VIDEO_ value provided"), or fail compilation.
This commit is contained in:
Claus Assmann
2015-11-09 14:44:38 +00:00
committed by Mark Liversedge
parent 8e21f7e3cf
commit 499cc060bf

View File

@@ -311,14 +311,14 @@ QString GcCrashDialog::versionHTML()
.arg(libusb)
.arg(wfapi)
.arg(vlc)
#ifdef GC_VIDEO_NONE
.arg("none")
#elif defined GC_VIDEO_QUICKTIME
#if defined GC_VIDEO_QUICKTIME
.arg("quicktime")
#elif defined GC_VIDEO_QT5
.arg("qt5")
#elif defined GC_VIDEO_VLC
.arg("vlc")
#else
.arg("none")
#endif
.arg(src)
.arg(QSslSocket::supportsSsl() ? "yes" : "none")