| 1 | diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
|
|---|
| 2 | index b6dc9f6..4385f4d 100644
|
|---|
| 3 | --- a/mythtv/libs/libmythtv/avformatdecoder.cpp
|
|---|
| 4 | +++ b/mythtv/libs/libmythtv/avformatdecoder.cpp
|
|---|
| 5 | @@ -1271,7 +1271,7 @@ int AvFormatDecoder::OpenFile(RingBuffer *rbuffer, bool novideo,
|
|---|
| 6 | if ((m_playbackinfo) || livetv || watchingrecording)
|
|---|
| 7 | {
|
|---|
| 8 | recordingHasPositionMap |= SyncPositionMap();
|
|---|
| 9 | - if (recordingHasPositionMap && !livetv && !watchingrecording)
|
|---|
| 10 | + if (recordingHasPositionMap && !watchingrecording) // && !livetv)
|
|---|
| 11 | {
|
|---|
| 12 | hasFullPositionMap = true;
|
|---|
| 13 | gopset = true;
|
|---|
| 14 | @@ -3118,12 +3118,12 @@ void AvFormatDecoder::HandleGopStart(
|
|---|
| 15 | int tempKeyFrameDist = framesRead - 1 - prevgoppos;
|
|---|
| 16 | bool reset_kfd = false;
|
|---|
| 17 |
|
|---|
| 18 | - if (!gopset || livetv) // gopset: we've seen 2 keyframes
|
|---|
| 19 | + if (!gopset) // || livetv) // gopset: we've seen 2 keyframes
|
|---|
| 20 | {
|
|---|
| 21 | LOG(VB_PLAYBACK, LOG_INFO, LOC +
|
|---|
| 22 | "gopset not set, syncing positionMap");
|
|---|
| 23 | SyncPositionMap();
|
|---|
| 24 | - if (tempKeyFrameDist > 0 && !livetv)
|
|---|
| 25 | + if (tempKeyFrameDist > 0) // && !livetv)
|
|---|
| 26 | {
|
|---|
| 27 | LOG(VB_PLAYBACK, LOG_INFO, LOC +
|
|---|
| 28 | QString("Initial key frame distance: %1.")
|
|---|
| 29 | @@ -3164,7 +3164,7 @@ void AvFormatDecoder::HandleGopStart(
|
|---|
| 30 | lastKey = prevgoppos = framesRead - 1;
|
|---|
| 31 |
|
|---|
| 32 | if (can_reliably_parse_keyframes &&
|
|---|
| 33 | - !hasFullPositionMap && !livetv && !watchingrecording)
|
|---|
| 34 | + !hasFullPositionMap && !watchingrecording) // && !livetv)
|
|---|
| 35 | {
|
|---|
| 36 | long long last_frame = 0;
|
|---|
| 37 | {
|
|---|
| 38 |
|
|---|