aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorksooo <3226626+ksooo@users.noreply.github.com>2024-07-11 19:18:36 +0200
committerksooo <3226626+ksooo@users.noreply.github.com>2024-07-13 11:13:53 +0200
commit75fb024b9b4481aeeaa563e4b4068cec4ecede17 (patch)
tree4af924a5fb281af4fc0eb33cb35429b1296f849f
parent0fc2eda21d2009a7ec732f32adbc926fc8efbb87 (diff)
[filesystem] CVideoDatabaseDirectory::GetDirectory: Do not create empty video info tags (which CFileItem::GetVideoInfoTag does if called from non-const methods). Only if the item already has a video info tag, it can have a path which we then set as item's dyn path.
-rw-r--r--xbmc/filesystem/VideoDatabaseDirectory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/filesystem/VideoDatabaseDirectory.cpp b/xbmc/filesystem/VideoDatabaseDirectory.cpp
index 4242b095ce..0afa2986dd 100644
--- a/xbmc/filesystem/VideoDatabaseDirectory.cpp
+++ b/xbmc/filesystem/VideoDatabaseDirectory.cpp
@@ -106,7 +106,7 @@ bool CVideoDatabaseDirectory::GetDirectory(const CURL& url, CFileItemList &items
if (!strImage.empty() && CServiceBroker::GetGUI()->GetTextureManager().HasTexture(strImage))
item->SetArt("icon", strImage);
}
- if (item->GetVideoInfoTag())
+ if (item->HasVideoInfoTag())
{
item->SetDynPath(item->GetVideoInfoTag()->GetPath());
}