Mpris2: Add static_cast

This commit is contained in:
Jonas Kvinge 2023-10-13 22:52:36 +02:00
parent 002fa8f4aa
commit c39489060b
1 changed files with 3 additions and 1 deletions

View File

@ -367,6 +367,7 @@ double Mpris2::Rating() const {
}
void Mpris2::SetRating(double rating) {
if (rating > 1.0) {
rating = 1.0;
}
@ -374,7 +375,8 @@ void Mpris2::SetRating(double rating) {
rating = -1.0;
}
app_->playlist_manager()->RateCurrentSong(rating);
app_->playlist_manager()->RateCurrentSong(static_cast<float>(rating));
}
QString Mpris2::current_track_id() const {