diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-05-22 22:09:42 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-05-22 22:09:42 +0200 |
commit | 7832f3bf3a9356112cab6ccb7faafb8256ea5271 (patch) | |
tree | 5f36e7b6aafb07132385ee4aaa8dae5149edd2d0 /src/VLCInput.h | |
parent | b5d910704541550fa23f14a610848402d51ba542 (diff) | |
download | ODR-AudioEnc-7832f3bf3a9356112cab6ccb7faafb8256ea5271.tar.gz ODR-AudioEnc-7832f3bf3a9356112cab6ccb7faafb8256ea5271.tar.bz2 ODR-AudioEnc-7832f3bf3a9356112cab6ccb7faafb8256ea5271.zip |
Move writing ICY Text to a separate async task
Diffstat (limited to 'src/VLCInput.h')
-rw-r--r-- | src/VLCInput.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/VLCInput.h b/src/VLCInput.h index 048c931..6b0a0f4 100644 --- a/src/VLCInput.h +++ b/src/VLCInput.h @@ -29,6 +29,7 @@ #include <deque> #include <thread> #include <mutex> +#include <future> #include <vlc/vlc.h> @@ -67,7 +68,7 @@ class VLCInput /* Write the last received ICY-Text to the * file. */ - void write_icy_text(const std::string& filename) const; + void write_icy_text(const std::string& filename); // Callbacks for VLC @@ -102,7 +103,9 @@ class VLCInput unsigned m_channels; int m_rate; + std::future<bool> icy_text_written; std::string m_nowplaying; + std::string m_nowplaying_previous; // VLC pointers libvlc_instance_t *m_vlc; |