From 7832f3bf3a9356112cab6ccb7faafb8256ea5271 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 22 May 2015 22:09:42 +0200 Subject: Move writing ICY Text to a separate async task --- src/VLCInput.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/VLCInput.h') 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 #include #include +#include #include @@ -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 icy_text_written; std::string m_nowplaying; + std::string m_nowplaying_previous; // VLC pointers libvlc_instance_t *m_vlc; -- cgit v1.2.3