X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=main.cpp;h=857c36a9c224567f78cd055a70df2566ffdbe2ad;hp=12d3bb6e30748ca9278e39477a1c7b2042c18848;hb=5252f4388cba35647842c720a5dd184d6fccaa08;hpb=374c697f74ba8abbfe2a014416eb398bb460d1c3 diff --git a/main.cpp b/main.cpp index 12d3bb6..857c36a 100644 --- a/main.cpp +++ b/main.cpp @@ -26,6 +26,10 @@ #include #include +#ifdef ENABLE_GSTREAMERMM +#include +#endif + #include #include @@ -54,6 +58,7 @@ #include "pv/logging.hpp" #include "pv/mainwindow.hpp" #include "pv/session.hpp" +#include "pv/util.hpp" #ifdef ANDROID #include @@ -168,6 +173,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 @@ -254,6 +264,9 @@ int main(int argc, char *argv[]) for (int i = 0; i < argc; i++) open_files.emplace_back(argv[i]); + qRegisterMetaType("util::Timestamp"); + qRegisterMetaType("uint64_t"); + // Prepare the global settings since logging needs them early on pv::GlobalSettings settings; settings.save_internal_defaults();