Skip to content
Browse files

Fix empty music title announce.

  • Loading branch information...
1 parent 288d0ff commit b6d1ee2364a7b52e225251e35e0d02baf797a4ec @ulion ulion committed Mar 1, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/interfaces/AnnouncementManager.cpp
View
5 xbmc/interfaces/AnnouncementManager.cpp
@@ -190,7 +190,10 @@ void CAnnouncementManager::Announce(AnnouncementFlag flag, const char *sender, c
// TODO: Can be removed once this is properly handled when starting playback of a file
item->SetProperty(LOOKUP_PROPERTY, false);
- object["item"]["title"] = item->GetMusicInfoTag()->GetTitle();
+ CStdString title = item->GetMusicInfoTag()->GetTitle();
+ if (title.IsEmpty())
+ title = item->GetLabel();
+ object["item"]["title"] = title;
if (item->GetMusicInfoTag()->GetTrackNumber() > 0)
object["item"]["track"] = item->GetMusicInfoTag()->GetTrackNumber();

0 comments on commit b6d1ee2

Please sign in to comment.
Something went wrong with that request. Please try again.