summaryrefslogtreecommitdiffstats
path: root/src/GSTInput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2022-11-18 16:02:06 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-11-18 16:02:06 +0100
commit734166da289ac4a5ebbc0b1c845c2b9681d41afc (patch)
treeeddfd317d98fc4435941a7b77f4e7697ef3afd83 /src/GSTInput.h
parentfff72cb8c17c2ff7f2c0a87f3e5e741009945a7b (diff)
downloadODR-AudioEnc-734166da289ac4a5ebbc0b1c845c2b9681d41afc.tar.gz
ODR-AudioEnc-734166da289ac4a5ebbc0b1c845c2b9681d41afc.tar.bz2
ODR-AudioEnc-734166da289ac4a5ebbc0b1c845c2b9681d41afc.zip
Add --gst-pipeline option for custom nput pipelines
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;