From 861ffe7f7376ff3df2c7a7421b2e84a57c6a2b83 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 12 Apr 2015 10:03:12 +0200 Subject: VLCInput ICY write: use fputs_unlocked The usage of fprintf seems to cause small interruptions. This is not so nice, this will have to be really solved when the interconnection between encoder and mot-encoder is replaced. --- src/VLCInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/VLCInput.cpp') diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 82d1d14..d7b691f 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -239,7 +239,7 @@ ssize_t VLCInput::read(uint8_t* buf, size_t length) void VLCInput::write_icy_text(const std::string& filename) const { FILE* fd = fopen(filename.c_str(), "wb"); - fprintf(fd, "%s", m_nowplaying.c_str()); + fputs_unlocked(m_nowplaying.c_str(), fd); fclose(fd); } -- cgit v1.2.3