From c9f573751bab3f53066aa87486f38216fde67ac8 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 28 Dec 2018 19:10:41 +0100 Subject: [PATCH] Add new dependency: libgstreamermm >= 1.8.0. Also, initialize gstreamermm in main(). --- CMakeLists.txt | 1 + INSTALL | 1 + main.cpp | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6f25e2..bef88ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,7 @@ add_subdirectory(manual) list(APPEND PKGDEPS glib-2.0>=2.28.0) list(APPEND PKGDEPS glibmm-2.4>=2.28.0) +list(APPEND PKGDEPS gstreamermm-1.0>=1.8.0) set(LIBSR_CXX_BINDING "libsigrokcxx>=0.5.1") list(APPEND PKGDEPS "${LIBSR_CXX_BINDING}") diff --git a/INSTALL b/INSTALL index edb7940..c68d575 100644 --- a/INSTALL +++ b/INSTALL @@ -15,6 +15,7 @@ Requirements - cmake >= 2.8.12 - libglib >= 2.28.0 - glibmm-2.4 (>= 2.28.0) + - gstreamermm-1.0 (>= 1.8.0) - Qt5 (including the following components): - Qt5Core, Qt5Gui, Qt5Widgets, Qt5Svg - libboost >= 1.55 (including the following libs): diff --git a/main.cpp b/main.cpp index a77969e..fca9aa7 100644 --- a/main.cpp +++ b/main.cpp @@ -26,6 +26,8 @@ #include #include +#include + #include #include @@ -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 -- 2.30.2