subtitlecomposer/0003-VideoPlayer-drop-an-unused-function-argument.patch

49 lines
1.7 KiB
Diff
Raw Normal View History

From 3ea1fe04047fba05a333a48a2248c01edde8adbb Mon Sep 17 00:00:00 2001
From: Mladen Milinkovic <maxrd2@smoothware.net>
Date: Thu, 1 Aug 2024 10:26:07 +0200
Subject: [PATCH 03/11] VideoPlayer: drop an unused function argument
---
src/videoplayer/backend/renderthread.cpp | 4 ++--
src/videoplayer/backend/renderthread.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/videoplayer/backend/renderthread.cpp b/src/videoplayer/backend/renderthread.cpp
index d6a044c4..99c374bd 100644
--- a/src/videoplayer/backend/renderthread.cpp
+++ b/src/videoplayer/backend/renderthread.cpp
@@ -103,7 +103,7 @@ retry:
m_vs->vidFQ.m_mutex->lock();
if(!std::isnan(vp->pts))
- updateVideoPts(vp->pts, vp->pos, vp->serial);
+ updateVideoPts(vp->pts, vp->serial);
m_vs->vidFQ.m_mutex->unlock();
if(m_vs->vidFQ.nbRemaining() > 1) {
@@ -187,7 +187,7 @@ RenderThread::vpDuration(Frame *vp, Frame *nextvp)
}
void
-RenderThread::updateVideoPts(double pts, int64_t /*pos*/, int serial)
+RenderThread::updateVideoPts(double pts, int serial)
{
// update current video pts
m_vs->vidClk.set(pts, serial);
diff --git a/src/videoplayer/backend/renderthread.h b/src/videoplayer/backend/renderthread.h
index 80fc66d4..7768886e 100644
--- a/src/videoplayer/backend/renderthread.h
+++ b/src/videoplayer/backend/renderthread.h
@@ -33,7 +33,7 @@ private:
void videoRefresh(double *remainingTime);
void videoDisplay();
double vpDuration(Frame *vp, Frame *nextvp);
- void updateVideoPts(double pts, int64_t pos, int serial);
+ void updateVideoPts(double pts, int serial);
double computeTargetDelay(double delay);
void updateSampleDisplay(short *samples, int samplesSize);
void toggleAudioDisplay();
--
2.46.0