mirror of
https://github.com/spalencsar/bearwave.git
synced 2026-07-07 14:44:16 +02:00
Fix metadata overwrite and Wayland DBus crash
This commit is contained in:
@@ -131,6 +131,11 @@ void BearPlayer::onMetaDataChanged()
|
||||
|
||||
QString title = meta.stringValue(QMediaMetaData::Title);
|
||||
|
||||
// Ignore completely empty metadata from QMediaPlayer so we don't overwrite IcyReader
|
||||
if (artist.isEmpty() && title.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_currentTrackArtist == artist && m_currentTrackTitle == title) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user