mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-03 03:11:43 +02:00
move string utils in namespace utils::string
This commit is contained in:
parent
b8f69ce58f
commit
fa3f78b08d
12 changed files with 178 additions and 133 deletions
|
@ -18,6 +18,7 @@
|
|||
|
||||
#include "spotifyStream.h"
|
||||
#include "common/snapException.h"
|
||||
#include "common/utils/string_utils.h"
|
||||
#include "common/utils.h"
|
||||
#include "common/log.h"
|
||||
|
||||
|
@ -101,7 +102,7 @@ void SpotifyStream::onStderrMsg(const char* buffer, size_t n)
|
|||
// 2016-11-03 09-00-18 [out] INFO:librespot::session: Connecting to AP lon3-accesspoint-a34.ap.spotify.com:443
|
||||
// 2016-11-03 09-00-18 [out] INFO:librespot::session: Authenticated !
|
||||
watchdog_->trigger();
|
||||
string logmsg = trim_copy(string(buffer, n));
|
||||
string logmsg = utils::string::trim_copy(string(buffer, n));
|
||||
if ((logmsg.find("allocated stream") == string::npos) &&
|
||||
(logmsg.find("Got channel") == string::npos) &&
|
||||
(logmsg.find('\0') == string::npos) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue