Skip to content

Commit

Permalink
Merge pull request xbmc#24333 from ksooo/video-fix-strm-video-info
Browse files Browse the repository at this point in the history
[video] Fix no video information available when playing strm files, …
  • Loading branch information
ksooo authored Dec 27, 2023
2 parents 7a09e7d + 59aa086 commit fa125a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions xbmc/application/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2394,8 +2394,9 @@ bool CApplication::PlayFile(CFileItem item, const std::string& player, bool bRes
if (videoInfoTagPath.find("removable://") == 0 || item.IsVideoDb())
path = videoInfoTagPath;

if (!item.HasVideoInfoTag())
dbs.LoadVideoInfo(path, *item.GetVideoInfoTag());
// Note that we need to load the tag from database also if the item already has a tag,
// because for example the (full) video info for strm files will be loaded here.
dbs.LoadVideoInfo(path, *item.GetVideoInfoTag());

if (item.HasProperty("savedplayerstate"))
{
Expand Down
4 changes: 3 additions & 1 deletion xbmc/video/windows/GUIWindowVideoBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1077,8 +1077,10 @@ bool CGUIWindowVideoBase::PlayItem(const std::shared_ptr<CFileItem>& pItem,
CServiceBroker::GetPlaylistPlayer().Play();
return true;
}
else if (pItem->IsPlayList())
else if (pItem->IsPlayList() && !pItem->IsType(".strm"))
{
// Note: strm files being somehow special playlists need to be handled in OnPlay*Media

// load the playlist the old way
LoadPlayList(pItem->GetDynPath(), PLAYLIST::TYPE_VIDEO);
return true;
Expand Down

0 comments on commit fa125a3

Please sign in to comment.