Make metadata thread safe, poll properties

This commit is contained in:
badaix 2021-06-23 20:48:25 +02:00
parent 1f51befbad
commit 0853c7c701
10 changed files with 124 additions and 100 deletions

View file

@ -170,10 +170,10 @@ void LibrespotStream::onStderrMsg(const std::string& line)
meta.title = string(m[1]);
meta.duration = cpt::stod(m[2]) / 1000.;
setMetadata(meta);
Properties props;
// props.can_seek = true;
// props.can_control = true;
setProperties(props);
Properties properties;
// properties.can_seek = true;
// properties.can_control = true;
setProperties(properties);
}
}