fix: init optional to null
This commit is contained in:
parent
20a8039a25
commit
02b3c125a1
|
@ -240,6 +240,10 @@ auto Mpris::getPlayerInfo() -> std::optional<PlayerInfo> {
|
||||||
.name = player_name,
|
.name = player_name,
|
||||||
.status = player_playback_status,
|
.status = player_playback_status,
|
||||||
.status_string = player_status,
|
.status_string = player_status,
|
||||||
|
.artist = std::nullopt,
|
||||||
|
.album = std::nullopt,
|
||||||
|
.title = std::nullopt,
|
||||||
|
.length = std::nullopt,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (auto artist_ = playerctl_player_get_artist(player, &error)) {
|
if (auto artist_ = playerctl_player_get_artist(player, &error)) {
|
||||||
|
|
Loading…
Reference in New Issue