Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /xbmc/utils/GUIInfoManager.cpp [84af45] .. [319e11] Maximize Restore

Repo status: analyzing...

  Switch to side-by-side view

--- a/xbmc/utils/GUIInfoManager.cpp
+++ b/xbmc/utils/GUIInfoManager.cpp
@@ -3083,7 +3083,10 @@
       return g_application.m_pPlayer->GetPlayingTitle();
     if (!m_currentFile->GetLabel().IsEmpty())
       return m_currentFile->GetLabel();
-    return CUtil::GetTitleFromPath(m_currentFile->m_strPath);
+    // Fallback to the filename for the title/label name. URLDecode since the path may be an URL
+    CStdString strVideoLabel = CUtil::GetTitleFromPath(m_currentFile->m_strPath);
+    CUtil::URLDecode(strVideoLabel);
+    return strVideoLabel;
   }
   else if (item == VIDEOPLAYER_PLAYLISTLEN)
   {