Don't try to update the scope if there's no buffer yet. Fixes #4388
This commit is contained in:
parent
e72cd6648a
commit
1e3cfb0a2c
|
@ -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_;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue