Signed-off-by: Bård Eirik Winther <bwint...@cisco.com>
---
 utils/qv4l2/qv4l2.cpp | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp
index a0f21cd..056e15d 100644
--- a/utils/qv4l2/qv4l2.cpp
+++ b/utils/qv4l2/qv4l2.cpp
@@ -1110,8 +1110,24 @@ void ApplicationWindow::saveRaw(bool checked)
 
 void ApplicationWindow::about()
 {
+#ifdef HAVE_ALSA
+       bool alsa = true;
+#else
+       bool alsa = false;
+#endif
+#ifdef HAVE_QTGL
+       bool gl = true;
+#else
+       bool gl = false;
+#endif
+
        QMessageBox::about(this, "V4L2 Test Bench",
-                       "This program allows easy experimenting with 
video4linux devices.");
+                          QString("This program allows easy experimenting with 
video4linux devices.\n"
+                                  "v. %1\n\nALSA support : %2\nOpenGL support 
: %3")
+                          .arg(V4L_UTILS_VERSION)
+                          .arg(alsa ? "Present" : "Not Available")
+                          .arg(gl ? "Present" : "Not Available")
+                          );
 }
 
 void ApplicationWindow::error(const QString &error)
-- 
1.8.4.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to