Skip to content
This repository
Browse code

Add plugin:// resolving before queueing next track

  • Loading branch information...
commit fbf1f628a6d0d9345e61624547b58673b7df7a36 1 parent 2908a12
authored February 13, 2012 Jonathan Marshall committed November 17, 2012

Showing 1 changed file with 9 additions and 4 deletions. Show diff stats Hide diff stats

  1. 13  xbmc/Application.cpp
13  xbmc/Application.cpp
@@ -4857,19 +4857,24 @@ bool CApplication::OnMessage(CGUIMessage& message)
4857 4857
         if (m_pPlayer) m_pPlayer->OnNothingToQueueNotify();
4858 4858
         return true; // nothing to do
4859 4859
       }
  4860
+
4860 4861
       // ok, grab the next song
4861  
-      CFileItemPtr item = playlist[iNext];
  4862
+      CFileItem file(*playlist[iNext]);
  4863
+      // handle plugin://
  4864
+      CURL url(file.GetPath());
  4865
+      if (url.GetProtocol() == "plugin")
  4866
+        XFILE::CPluginDirectory::GetPluginResult(url.Get(), file);
4862 4867
 
4863 4868
 #ifdef HAS_UPNP
4864  
-      if (URIUtils::IsUPnP(item->GetPath()))
  4869
+      if (URIUtils::IsUPnP(file.GetPath()))
4865 4870
       {
4866  
-        if (!XFILE::CUPnPDirectory::GetResource(item->GetPath(), *item))
  4871
+        if (!XFILE::CUPnPDirectory::GetResource(file.GetPath(), file))
4867 4872
           return true;
4868 4873
       }
4869 4874
 #endif
4870 4875
 
4871 4876
       // ok - send the file to the player if it wants it
4872  
-      if (m_pPlayer && m_pPlayer->QueueNextFile(*item))
  4877
+      if (m_pPlayer && m_pPlayer->QueueNextFile(file))
4873 4878
       { // player wants the next file
4874 4879
         m_nextPlaylistItem = iNext;
4875 4880
       }

0 notes on commit fbf1f62

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