From 734166da289ac4a5ebbc0b1c845c2b9681d41afc Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 18 Nov 2022 16:02:06 +0100 Subject: Add --gst-pipeline option for custom nput pipelines --- src/GSTInput.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/GSTInput.h') diff --git a/src/GSTInput.h b/src/GSTInput.h index 4bfae34..3c2971d 100644 --- a/src/GSTInput.h +++ b/src/GSTInput.h @@ -43,6 +43,7 @@ struct GSTData { GSTData(SampleQueue& samplequeue); + // When using URL and uridecodebin GstElement *pipeline = nullptr; GstElement *uridecodebin = nullptr; GstElement *audio_convert = nullptr; @@ -50,6 +51,9 @@ struct GSTData { GstElement *caps_filter = nullptr; GstElement *app_sink = nullptr; + // When using pipeline + GstElement *custom_bin = nullptr; + GstBus *bus = nullptr; SampleQueue& samplequeue; @@ -59,6 +63,7 @@ class GSTInput : public InputInterface { public: GSTInput(const std::string& uri, + const std::string& pipeline, int rate, unsigned channels, SampleQueue& queue); @@ -78,6 +83,7 @@ class GSTInput : public InputInterface virtual bool fault_detected(void) const override { return m_fault; }; private: std::string m_uri; + std::string m_pipeline; unsigned m_channels; int m_rate; -- cgit v1.2.3