aboutsummaryrefslogtreecommitdiffstats
path: root/community/omxplayer/issue-260.patch
blob: 4e8e77ad1c6b4ec214fb92e78e8c68d1c5e4ffe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
https://github.com/popcornmix/omxplayer/issues/260

Not a fix, but improves the situation a little bit.

--- omxplayer-6ee9a0a5488119786990b6f91990d59d6e35427c.orig/omxplayer.cpp
+++ omxplayer-6ee9a0a5488119786990b6f91990d59d6e35427c/omxplayer.cpp
@@ -1543,6 +1543,9 @@
         }
       }
 
+      if (audio_pts < stamp) audio_pts = DVD_NOPTS_VALUE;
+      if (video_pts < stamp) video_pts = DVD_NOPTS_VALUE;
+
       float audio_fifo = audio_pts == DVD_NOPTS_VALUE ? 0.0f : audio_pts / DVD_TIME_BASE - stamp * 1e-6;
       float video_fifo = video_pts == DVD_NOPTS_VALUE ? 0.0f : video_pts / DVD_TIME_BASE - stamp * 1e-6;
       float threshold = std::min(0.1f, (float)m_player_audio.GetCacheTotal() * 0.1f);