Skip to content

Commit

Permalink
Fix announce video item no title in video info tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulion committed Mar 11, 2013
1 parent 4b9adf6 commit dbe587c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xbmc/interfaces/AnnouncementManager.cpp
Expand Up @@ -137,7 +137,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->GetVideoInfoTag()->m_strTitle;
CStdString title = item->GetVideoInfoTag()->m_strTitle;
if (title.IsEmpty())
title = item->GetLabel();
object["item"]["title"] = title;

switch (item->GetVideoContentType())
{
Expand Down

0 comments on commit dbe587c

Please sign in to comment.