diff options
Diffstat (limited to 'xbmc/windows/GUIMediaWindow.cpp')
-rw-r--r-- | xbmc/windows/GUIMediaWindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/windows/GUIMediaWindow.cpp b/xbmc/windows/GUIMediaWindow.cpp index 62cf70e6d0..f764b671c5 100644 --- a/xbmc/windows/GUIMediaWindow.cpp +++ b/xbmc/windows/GUIMediaWindow.cpp @@ -24,6 +24,7 @@ #include "addons/addoninfo/AddonType.h" #include "application/Application.h" #include "messaging/ApplicationMessenger.h" +#include "network/NetworkFileItemClassify.h" #if defined(TARGET_ANDROID) #include "platform/android/activity/XBMCApp.h" #endif @@ -76,8 +77,8 @@ #define PLUGIN_REFRESH_DELAY 200 using namespace ADDON; +using namespace KODI; using namespace KODI::MESSAGING; -using namespace KODI::VIDEO; using namespace std::chrono_literals; namespace @@ -1500,7 +1501,7 @@ bool CGUIMediaWindow::OnPlayMedia(int iItem, const std::string &player) CLog::Log(LOGDEBUG, "{} {}", __FUNCTION__, CURL::GetRedacted(pItem->GetPath())); bool bResult = false; - if (pItem->IsInternetStream() || pItem->IsPlayList()) + if (NETWORK::IsInternetStream(*pItem) || pItem->IsPlayList()) bResult = g_application.PlayMedia(*pItem, player, m_guiState->GetPlaylist()); else bResult = g_application.PlayFile(*pItem, player); |