summaryrefslogtreecommitdiffstats
path: root/src/VLCInput.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/VLCInput.h')
-rw-r--r--src/VLCInput.h5
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;