Ticket #12809: 20180111_endoffile.patch

File 20180111_endoffile.patch, 599 bytes (added by Peter Bennett, 3 years ago)

Fix for end of file looping

  • mythtv/libs/libmythtv/mythplayer.cpp

    diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
    index c2d5b65..ade503e 100644
    a b void MythPlayer::DecoderLoop(bool pause) 
    34433443        DecodeType dt = deleteMap.IsEditing() || (audio.HasAudioOut() && normal_speed) ?
    34443444            kDecodeAV : kDecodeVideo;
    34453445
    3446         DecoderGetFrame(dt);
     3446        bool gotFrame = DecoderGetFrame(dt);
     3447        if (!gotFrame && decodeOneFrame)
     3448            needNewPauseFrame = false;
    34473449        decodeOneFrame = false;
    34483450    }
    34493451