diff options
author | popcornmix <popcornmix@gmail.com> | 2016-12-14 21:50:33 +0000 |
---|---|---|
committer | popcornmix <popcornmix@gmail.com> | 2016-12-16 17:50:48 +0000 |
commit | 5c443a72f53fe3d98861a885b27d0bbdb3defcd8 (patch) | |
tree | 5607c57997fd9c75988c8ddf9ca4cf2b3855f925 | |
parent | 7581c4a32cee58c1a9d4ef2a0fbd2a838b8a64c9 (diff) |
VideoPlayer: Don't add timestamp offsets to DVD_NOPTS_VALUE
I have a dvd menu that results in a renderer configure timeout.
The dts and pts timestamps are wild.
I've traced it back to pts=DVD_NOPTS_VALUE being adjusted and so no longer being treated as invalid
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoPlayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp index bb80b836b9..6d373e6af7 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp @@ -1610,9 +1610,9 @@ void CVideoPlayer::Process() if (CDVDInputStream::IMenus* menu = dynamic_cast<CDVDInputStream::IMenus*>(m_pInputStream)) { double correction = menu->GetTimeStampCorrection(); - if (pPacket->dts > correction) + if (pPacket->dts != DVD_NOPTS_VALUE && pPacket->dts > correction) pPacket->dts -= correction; - if (pPacket->pts > correction) + if (pPacket->pts != DVD_NOPTS_VALUE && pPacket->pts > correction) pPacket->pts -= correction; } if (m_dvd.syncClock) |