diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-07 11:47:05 +0200 |
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-10-07 11:51:46 +0200 |
| commit | 84febca8b268129cdd79ff0d1c4f8eeed092c5fb (patch) | |
| tree | 3e75880241e0fcd2951c04aad77d7077b4ec130c /src/VLCInput.cpp | |
| parent | 9c2615425bb4f35a417eb04b1ceebfc77d8e2c8b (diff) | |
| download | ODR-AudioEnc-84febca8b268129cdd79ff0d1c4f8eeed092c5fb.tar.gz ODR-AudioEnc-84febca8b268129cdd79ff0d1c4f8eeed092c5fb.tar.bz2 ODR-AudioEnc-84febca8b268129cdd79ff0d1c4f8eeed092c5fb.zip | |
Use queue for all inputs and unify interface
This also changes the --fifo-silence option. Instead of inserting
silence separately, it uses the drift compensation to do that.
Diffstat (limited to 'src/VLCInput.cpp')
| -rw-r--r-- | src/VLCInput.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 9c424bb..494d620 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -252,6 +252,12 @@ void VLCInput::prepare() m_thread = std::thread(&VLCInput::process, this); } +bool VLCInput::read_source(size_t num_bytes) +{ + // Reading done in separate thread, no normal termination condition possible + return true; +} + void VLCInput::preRender_cb(uint8_t** pp_pcm_buffer, size_t size) { const size_t max_length = 20 * size; |
