summaryrefslogtreecommitdiffstats
path: root/src/GSTInput.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/GSTInput.h')
-rw-r--r--src/GSTInput.h6
1 files changed, 6 insertions, 0 deletions
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<uint8_t>& 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<uint8_t>& samplequeue;
@@ -59,6 +63,7 @@ class GSTInput : public InputInterface
{
public:
GSTInput(const std::string& uri,
+ const std::string& pipeline,
int rate,
unsigned channels,
SampleQueue<uint8_t>& 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;