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

MediaLibrary: Don't hardcode new devices schemes

parent 73ddee1c
Pipeline #5227 passed with stage
in 5 minutes and 24 seconds
......@@ -1672,7 +1672,8 @@ bool MediaLibrary::DeviceListerCb::onDeviceMounted( const std::string& uuid,
{
try
{
if ( Device::create( m_ml, uuid, "file://", true ) == nullptr )
if ( Device::create( m_ml, uuid, fsFactory->scheme(),
true ) == nullptr )
return false;
}
// And be conservative and assume another thread might have
......
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