]> sigrok.org Git - pulseview.git/blobdiff - main.cpp
Add libsigrokflow build system integration.
[pulseview.git] / main.cpp
index a77969ea7f72313e6c42b71cf0cd09980c53e0da..a4c7e72badfd6fb4fca88e3cf559d47c5a4586da 100644 (file)
--- a/main.cpp
+++ b/main.cpp
 #include <getopt.h>
 #include <vector>
 
+#ifdef ENABLE_GSTREAMERMM
+#include <gstreamermm.h>
+#include <libsigrokflow/libsigrokflow.hpp>
+#endif
+
 #include <libsigrokcxx/libsigrokcxx.hpp>
 
 #include <QCheckBox>
@@ -169,6 +174,11 @@ int main(int argc, char *argv[])
        bool do_scan = true;
        bool show_version = false;
 
+#ifdef ENABLE_GSTREAMERMM
+       // Initialise gstreamermm. Must be called before any other GLib stuff.
+       Gst::init();
+#endif
+
        Application a(argc, argv);
 
 #ifdef ANDROID