Ticket #12996: v2-0013-Remove-code-fragment-whose-result-is-never-used.patch

File v2-0013-Remove-code-fragment-whose-result-is-never-used.patch, 938 bytes (added by David Hampton <mythtv@…>, 3 years ago)

Remove code fragment whose result is never used.

  • mythtv/libs/libmythtv/mythplayer.cpp

    Remove code fragment whose result is never used.
    
    Remove the three lines from DisplayNormalFrame that compute the frame
    scan type because the result is never used. (These lines also appear in
    several other functions where the result is used.)
    ---
     mythtv/libs/libmythtv/mythplayer.cpp | 4 ----
     1 file changed, 4 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
    index 3db086f..96b5b85 100644
    a b void MythPlayer::DisplayNormalFrame(bool check_prebuffer) 
    23172317    AutoDeint(frame);
    23182318    detect_letter_box->SwitchTo(frame);
    23192319
    2320     FrameScanType ps = m_scan;
    2321     if (kScan_Detect == m_scan || kScan_Ignore == m_scan)
    2322         ps = kScan_Progressive;
    2323 
    23242320    AVSync(frame, 0);
    23252321    // If PiP then keep this frame for MythPlayer::GetCurrentFrame
    23262322    if (!player_ctx->IsPIP())