diff options
| author | Thomas Reufer <thomas@reufer.ch> | 2015-08-14 14:10:49 +0200 |
|---|---|---|
| committer | Thomas Reufer <thomas@reufer.ch> | 2015-08-14 14:10:49 +0200 |
| commit | df3e781fa0365e0359d04111502473d861f80b8c (patch) | |
| tree | c4b481723907c1b5d53c53491b033c63f46c7ae4 | |
| parent | a87df97d3c5c29ee6c294085f52acb0978b5585a (diff) | |
| download | vdr-plugin-rpihddevice-df3e781fa0365e0359d04111502473d861f80b8c.tar.gz vdr-plugin-rpihddevice-df3e781fa0365e0359d04111502473d861f80b8c.tar.bz2 | |
print audio PTS wrap around in debug mode
| -rw-r--r-- | omxdevice.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/omxdevice.c b/omxdevice.c index a48c1f7..e42dd7f 100644 --- a/omxdevice.c +++ b/omxdevice.c @@ -286,6 +286,10 @@ int cOmxDevice::PlayAudio(const uchar *Data, int Length, uchar Id) } int64_t ptsDiff = PtsDiff(m_audioPts & MAX33BIT, pts); + + if ((m_audioPts & ~MAX33BIT) != (m_audioPts + ptsDiff & ~MAX33BIT)) + DBG("audio PTS wrap around"); + m_audioPts += ptsDiff; // keep track of direction in case of trick speed |
