1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 20:34:39 +01:00

Apparently I'm blind. (Refactoring)

This commit is contained in:
Mark Furneaux 2014-05-03 09:28:07 -04:00
parent 00a1fe1e32
commit 8f9229d7c9
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -161,7 +161,7 @@ class GstEngine : public Engine::Base, public BufferConsumer {
std::shared_ptr<GstEnginePipeline> CreatePipeline(const QUrl& url,
qint64 end_nanosec);
void UpdateScope(int chunk_length_);
void UpdateScope(int chunk_length);
int AddBackgroundStream(std::shared_ptr<GstEnginePipeline> pipeline);