subtitlecomposer/0003-VideoPlayer-drop-an-unused-function-argument.patch
Christophe Marin 7e2072f1f1 - Add patch to fix build with pocketsphinx 5.0.3 in TW since
the API changed in the 5.0.0 release. Also, removed some
  parameters that don't seem to be configurable by pocketsphinx
  anymore:
  * use-pocketsphinx-5.0.0-api.patch

OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/subtitlecomposer?expand=0&rev=47
2024-12-24 11:58:10 +00:00

49 lines
1.7 KiB
Diff

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