diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-02-02 15:39:51 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-02-02 15:39:51 +0100 |
commit | 5c65728d0f8e094403e4cb009445e0bfaf64c971 (patch) | |
tree | b48512b9f73c2ab4be37bc2eaddad34ac445ea34 /dxr3interface.c | |
parent | 64a85f960aaadb129923e8af6a4f08bc59634a25 (diff) | |
download | vdr-plugin-dxr3-5c65728d0f8e094403e4cb009445e0bfaf64c971.tar.gz vdr-plugin-dxr3-5c65728d0f8e094403e4cb009445e0bfaf64c971.tar.bz2 |
add final code to PlayVideo... a/v sync should work now..
...but sources needs some cleanups and missing methods needs
to worked out.
Diffstat (limited to 'dxr3interface.c')
-rw-r--r-- | dxr3interface.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/dxr3interface.c b/dxr3interface.c index 1c1a392..b04d08e 100644 --- a/dxr3interface.c +++ b/dxr3interface.c @@ -275,10 +275,17 @@ void cDxr3Interface::Pause() } // ================================== -void cDxr3Interface::PlayVideoFrame(cDxr3PesFrame *frame) +void cDxr3Interface::PlayVideoFrame(cDxr3PesFrame *frame, uint32_t pts) { - if (!m_VideoActive) { - return; + //if (!m_VideoActive) { + // return; + //} + + if (pts > 0) { + pts += 45000; + dsyslog("setting pts %d", pts); + this->SetPts(pts); + m_lastSeenPts = pts; } Lock(); @@ -298,10 +305,7 @@ void cDxr3Interface::PlayVideoFrame(cDxr3PesFrame *frame) Unlock(); - SetAspectRatio(frame->GetAspectRatio()); - uint32_t pts = frame->GetPts(); - if (pts > 0) - m_lastSeenPts = pts; + //SetAspectRatio(frame->GetAspectRatio()); } // ================================== |