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:
parent
00a1fe1e32
commit
8f9229d7c9
@ -249,7 +249,7 @@ const Engine::Scope& GstEngine::scope(int chunk_length) {
|
|||||||
if (have_new_buffer_) {
|
if (have_new_buffer_) {
|
||||||
if (latest_buffer_ != nullptr) {
|
if (latest_buffer_ != nullptr) {
|
||||||
scope_chunks_ = ceil(((double)GST_BUFFER_DURATION(latest_buffer_) /
|
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
|
// if the buffer is shorter than the chunk length
|
||||||
|
@ -161,7 +161,7 @@ class GstEngine : public Engine::Base, public BufferConsumer {
|
|||||||
std::shared_ptr<GstEnginePipeline> CreatePipeline(const QUrl& url,
|
std::shared_ptr<GstEnginePipeline> CreatePipeline(const QUrl& url,
|
||||||
qint64 end_nanosec);
|
qint64 end_nanosec);
|
||||||
|
|
||||||
void UpdateScope(int chunk_length_);
|
void UpdateScope(int chunk_length);
|
||||||
|
|
||||||
int AddBackgroundStream(std::shared_ptr<GstEnginePipeline> pipeline);
|
int AddBackgroundStream(std::shared_ptr<GstEnginePipeline> pipeline);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user