aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Luis Marti <joseluis.marti@gmail.com>2023-09-15 00:30:45 +0200
committerJose Luis Marti <joseluis.marti@gmail.com>2023-09-15 00:30:45 +0200
commit127ea962e06a56aec187649ba573b8dd5a0787ec (patch)
treeb4a929ad6edf71cd3da86c1e8c2b90730ebef0ae
parent55ef84ad51d59c7cc70f82ca5cdc87c499917edd (diff)
[Video] Fix crash when scan to library on a directory containing new movies
-rw-r--r--xbmc/video/tags/VideoTagExtractionHelper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/xbmc/video/tags/VideoTagExtractionHelper.cpp b/xbmc/video/tags/VideoTagExtractionHelper.cpp
index 5ce567aed9..fbab01c805 100644
--- a/xbmc/video/tags/VideoTagExtractionHelper.cpp
+++ b/xbmc/video/tags/VideoTagExtractionHelper.cpp
@@ -21,10 +21,9 @@ using namespace VIDEO::TAGS;
bool CVideoTagExtractionHelper::IsExtractionSupportedFor(const CFileItem& item)
{
- const std::string fileNameAndPath = item.GetVideoInfoTag()->m_strFileNameAndPath;
return CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool(
CSettings::SETTING_MYVIDEOS_USETAGS) &&
- URIUtils::HasExtension(fileNameAndPath, ".mkv|.mp4|.avi|.m4v");
+ URIUtils::HasExtension(item.GetDynPath(), ".mkv|.mp4|.avi|.m4v");
}
std::string CVideoTagExtractionHelper::ExtractEmbeddedArtFor(const CFileItem& item,