From 8f9229d7c93fedfc224d3c732e89a0b9a488f714 Mon Sep 17 00:00:00 2001 From: Mark Furneaux Date: Sat, 3 May 2014 09:28:07 -0400 Subject: [PATCH] Apparently I'm blind. (Refactoring) --- src/engines/gstengine.cpp | 2 +- src/engines/gstengine.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);