diff options
author | ksooo <3226626+ksooo@users.noreply.github.com> | 2024-07-11 19:18:36 +0200 |
---|---|---|
committer | ksooo <3226626+ksooo@users.noreply.github.com> | 2024-07-13 21:50:55 +0200 |
commit | 7d70dd71cd728d8e87fd593eae6473ce74fec075 (patch) | |
tree | 959f41250c69eca1264e467e844c45b9c05d9fdf | |
parent | 4a7bd2edc82147c39b54321f1adc401292221c5a (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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/filesystem/VideoDatabaseDirectory.cpp b/xbmc/filesystem/VideoDatabaseDirectory.cpp index 2c9caa7080..97618694ff 100644 --- a/xbmc/filesystem/VideoDatabaseDirectory.cpp +++ b/xbmc/filesystem/VideoDatabaseDirectory.cpp @@ -105,7 +105,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()); } |