summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2015-04-27 21:39:11 +0200
committerThomas Reufer <thomas@reufer.ch>2015-04-27 21:39:11 +0200
commit06eb36f0ae6bf4fc3c5bb78cb683c8a361eebebb (patch)
treef4ba1e4db096ad1e74b7b637621fcee78d4ff0c1
parent3e785f99d1d72baa539c3278f2f4439fc5970b6d (diff)
downloadvdr-plugin-rpihddevice-06eb36f0ae6bf4fc3c5bb78cb683c8a361eebebb.tar.gz
vdr-plugin-rpihddevice-06eb36f0ae6bf4fc3c5bb78cb683c8a361eebebb.tar.bz2
fixed displaying of current position when changing replay speed
-rw-r--r--HISTORY1
-rw-r--r--omxdevice.c8
-rw-r--r--omxdevice.h2
3 files changed, 9 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 511ecb1..5db9474 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8,6 +8,7 @@ VDR Plugin 'rpihddevice' Revision History
- added font kerning
- support for GPU accelerated pixmaps
- fixed:
+ - fixed displaying of current position when changing replay speed
- fixed PTS wrap around (reported by Klaus Schmidinger)
- increased audio decoder thread priority
- don't depend on multi channel PCM support for digital audio pass-through
diff --git a/omxdevice.c b/omxdevice.c
index ba37446..fb51686 100644
--- a/omxdevice.c
+++ b/omxdevice.c
@@ -54,7 +54,8 @@ cOmxDevice::cOmxDevice(void (*onPrimaryDevice)(void)) :
m_playDirection(0),
m_trickRequest(0),
m_audioPts(0),
- m_videoPts(0)
+ m_videoPts(0),
+ m_lastStc(0)
{
}
@@ -412,7 +413,10 @@ bool cOmxDevice::SubmitEOS(void)
int64_t cOmxDevice::GetSTC(void)
{
- return m_omx->GetSTC() & MAX33BIT;
+ int64_t stc = m_omx->GetSTC();
+ if (stc)
+ m_lastStc = stc;
+ return m_lastStc & MAX33BIT;
}
uchar *cOmxDevice::GrabImage(int &Size, bool Jpeg, int Quality,
diff --git a/omxdevice.h b/omxdevice.h
index 412bdf0..045d149 100644
--- a/omxdevice.h
+++ b/omxdevice.h
@@ -178,6 +178,8 @@ private:
uint64_t m_audioPts;
uint64_t m_videoPts;
+
+ int64_t m_lastStc;
};
#endif