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

medialibrary: Fix potential null pointer dereference

parent 579fe329
......@@ -399,6 +399,8 @@ bool Convert( const medialibrary::IFolder* input, vlc_ml_entry_point_t& output )
input_item_t* MediaToInputItem( const medialibrary::IMedia* media )
if ( media == nullptr )
return nullptr;
auto files = media->files();
const auto it = std::find_if( files.cbegin(), files.cend(),
[](const medialibrary::FilePtr& f) {
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