diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-04 21:02:28 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-04 21:02:28 +0100 |
commit | 9379701fa0b8aabceef3e67e351a9327e8dbe658 (patch) | |
tree | e42ef452a4a50882598a4fa4539972e0ff2e9955 /src/VLCInput.h | |
parent | 4da379804526d4ceabd2f9cc8da614744438eabd (diff) | |
parent | 61b5ba527efef75565336dfa87f0a2432dd5f50b (diff) | |
download | fdk-aac-9379701fa0b8aabceef3e67e351a9327e8dbe658.tar.gz fdk-aac-9379701fa0b8aabceef3e67e351a9327e8dbe658.tar.bz2 fdk-aac-9379701fa0b8aabceef3e67e351a9327e8dbe658.zip |
Merge branch 'next' into libtoolame
Diffstat (limited to 'src/VLCInput.h')
-rw-r--r-- | src/VLCInput.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/VLCInput.h b/src/VLCInput.h index 5139b89..ffa9258 100644 --- a/src/VLCInput.h +++ b/src/VLCInput.h @@ -47,12 +47,14 @@ class VLCInput unsigned channels, unsigned verbosity, std::string& gain, - std::string& cache) : + std::string& cache, + std::vector<std::string>& additional_opts) : m_uri(uri), m_verbosity(verbosity), m_channels(channels), m_rate(rate), m_cache(cache), + m_additional_opts(additional_opts), m_gain(gain), m_vlc(nullptr), m_mp(nullptr) { } @@ -104,6 +106,9 @@ class VLCInput // Whether to enable network caching in VLC or not std::string m_cache; + // Given as-is to libvlc + std::vector<std::string> m_additional_opts; + // value for the VLC compressor filter std::string m_gain; @@ -128,8 +133,9 @@ class VLCInputDirect : public VLCInput unsigned channels, unsigned verbosity, std::string& gain, - std::string& cache) : - VLCInput(uri, rate, channels, verbosity, gain, cache) {} + std::string& cache, + std::vector<std::string>& additional_opts) : + VLCInput(uri, rate, channels, verbosity, gain, cache, additional_opts) {} /* Read exactly length bytes into buf. * Blocks if not enough data is available, @@ -151,8 +157,9 @@ class VLCInputThreaded : public VLCInput unsigned verbosity, std::string& gain, std::string& cache, + std::vector<std::string>& additional_opts, SampleQueue<uint8_t>& queue) : - VLCInput(uri, rate, channels, verbosity, gain, cache), + VLCInput(uri, rate, channels, verbosity, gain, cache, additional_opts), m_fault(false), m_running(false), m_queue(queue) {} |