Send audio files with correct attributes.

Regression was introduced in 8b69e6ab99.

Fixes #4163.
This commit is contained in:
John Preston 2017-12-12 16:43:39 +04:00
parent 574f4a73cb
commit b2f29b674d

View File

@ -251,7 +251,7 @@ bool FileLoadTask::CheckForSong(const QString &filepath, const QByteArray &conte
if (!CheckMimeOrExtensions(filepath, result->filemime, mimes, extensions)) {
return false;
}
return false;
auto media = Media::Player::PrepareForSending(filepath, content);
if (media.duration < 0) {
return false;