diff --git a/src/engines/gstengine.cpp b/src/engines/gstengine.cpp index 337df9899..20e1682f4 100755 --- a/src/engines/gstengine.cpp +++ b/src/engines/gstengine.cpp @@ -249,7 +249,7 @@ const Engine::Scope& GstEngine::scope(int chunk_length) { if (have_new_buffer_) { if (latest_buffer_ != nullptr) { scope_chunks_ = ceil(((double)GST_BUFFER_DURATION(latest_buffer_) / - (double)(chunk_length * 1000000))); + (double)(chunk_length * kNsecPerMsec))); } // if the buffer is shorter than the chunk length diff --git a/src/engines/gstengine.h b/src/engines/gstengine.h index ad1819691..053f8f128 100755 --- a/src/engines/gstengine.h +++ b/src/engines/gstengine.h @@ -161,7 +161,7 @@ class GstEngine : public Engine::Base, public BufferConsumer { std::shared_ptr CreatePipeline(const QUrl& url, qint64 end_nanosec); - void UpdateScope(int chunk_length_); + void UpdateScope(int chunk_length); int AddBackgroundStream(std::shared_ptr pipeline);