Add new dependency: libgstreamermm >= 1.8.0.
[pulseview.git] / main.cpp
index a77969ea7f72313e6c42b71cf0cd09980c53e0da..fca9aa7966e5b8f7f8be420ef1260953a7860b98 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -26,6 +26,8 @@
 #include <getopt.h>
 #include <vector>
 
+#include <gstreamermm.h>
+
 #include <libsigrokcxx/libsigrokcxx.hpp>
 
 #include <QCheckBox>
@@ -169,6 +171,9 @@ int main(int argc, char *argv[])
        bool do_scan = true;
        bool show_version = false;
 
+       // Initialise gstreamermm. Must be called before any other GLib stuff.
+       Gst::init();
+
        Application a(argc, argv);
 
 #ifdef ANDROID