Commit 35865129 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MetadataParser: Add missing return

Otherwise we'd have media without associated file, which we wouldn't be
able to play anyway
parent be691fde
......@@ -266,7 +266,10 @@ void MetadataAnalyzer::addPlaylistElement( IItem& item,
// Assuming that external mrl present in playlist file is a main media resource
auto externalFile = externalMedia->addExternalMrl( mrl, IFile::Type::Main );
if ( externalFile == nullptr )
LOG_ERROR( "Failed to create external file for ", mrl, " in the playlist ", playlistMrl );
playlistPtr->add( *externalMedia, subitem.parentPlaylistIndex() );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment