From 75fb024b9b4481aeeaa563e4b4068cec4ecede17 Mon Sep 17 00:00:00 2001 From: ksooo <3226626+ksooo@users.noreply.github.com> Date: Thu, 11 Jul 2024 19:18:36 +0200 Subject: [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. --- xbmc/filesystem/VideoDatabaseDirectory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- cgit v1.2.3