1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Don't try to update the scope if there's no buffer yet. Fixes #4388

This commit is contained in:
David Sansome 2014-06-02 12:45:29 +10:00
parent e72cd6648a
commit 1e3cfb0a2c

View File

@ -267,7 +267,10 @@ const Engine::Scope& GstEngine::scope(int chunk_length) {
have_new_buffer_ = false;
}
UpdateScope(chunk_length);
if (latest_buffer_ != nullptr) {
UpdateScope(chunk_length);
}
return scope_;
}