X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=main.cpp;h=28c0a41f6da1e6800413e20b67f79ea9f3c617ca;hp=a77969ea7f72313e6c42b71cf0cd09980c53e0da;hb=323715c41a09a1aba08f4b716e9d93da58f0f3a8;hpb=21f5864602c5c1920fc9b44813f31e789bee6895 diff --git a/main.cpp b/main.cpp index a77969ea..28c0a41f 100644 --- a/main.cpp +++ b/main.cpp @@ -26,6 +26,11 @@ #include #include +#ifdef ENABLE_FLOW +#include +#include +#endif + #include #include @@ -169,6 +174,14 @@ int main(int argc, char *argv[]) bool do_scan = true; bool show_version = false; +#ifdef ENABLE_FLOW + // Initialise gstreamermm. Must be called before any other GLib stuff. + Gst::init(); + + // Initialize libsigrokflow. Must be called after Gst::init(). + Srf::init(); +#endif + Application a(argc, argv); #ifdef ANDROID