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
1 changed files with 4 additions and 1 deletions

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_;
}