Commit bed4533d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

MetadataParser: Give up after the 2nd attempt

If the file has no tracks, even after a playback was started, there's
not much we can do about it
parent 33eec634
......@@ -77,7 +77,13 @@ parser::Task::Status MetadataParser::run( parser::Task& task )
// thumbnailer. Since it starts an actual playback, it will have more information.
// Since the metadata steps won't be marked, it will run again once the thumbnailer has completed.
if ( tracks.empty() == true )
return parser::Task::Status::Success;
{
// However, if the file is not unknown anymore, it means the thumbnailer has already processed it
if ( task.media->type() == Media::Type::UnknownType )
return parser::Task::Status::Success;
// In that case, stop trying to do something with this file.
return parser::Task::Status::Fatal;
}
bool isAudio = true;
{
......
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