Ticket #9120: 32-start-play-fast

File 32-start-play-fast, 1020 bytes (added by Mark Spieth, 10 years ago)

reduce startup avsync mismatch

Line 
1start playing first frame
2
3From: Mark Spieth <mspieth@digivation.com.au>
4
5
6---
7 mythtv/libs/libmythtv/mythplayer.cpp |    5 +++--
8 1 files changed, 3 insertions(+), 2 deletions(-)
9
10diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
11index e2cdc9b..0aad542 100644
12--- a/mythtv/libs/libmythtv/mythplayer.cpp
13+++ b/mythtv/libs/libmythtv/mythplayer.cpp
14@@ -2505,7 +2505,7 @@ bool MythPlayer::StartPlaying(void)
15 
16     bool seek = bookmarkseek > 30;
17     EventStart();
18-    DecoderStart(seek);
19+    DecoderStart(true);
20     if (seek)
21         InitialSeek();
22     VideoStart();
23@@ -2514,6 +2514,7 @@ bool MythPlayer::StartPlaying(void)
24         delete playerTimer;
25     playerTimer = new PlayerTimer(this);
26     playerThread->setPriority(QThread::TimeCriticalPriority);
27+    UnpauseDecoder();
28     return !IsErrored();
29 }
30 
31@@ -2529,7 +2530,7 @@ void MythPlayer::InitialSeek(void)
32             ClearBookmark(false);
33         }
34     }
35-    UnpauseDecoder();
36+    //UnpauseDecoder();
37 }
38 
39