Ticket #9511: 104-optimize_decoder_state_change.patch

File 104-optimize_decoder_state_change.patch, 845 bytes (added by Jiri Fojtasek <jiri.fojtasek@…>, 9 years ago)

second patch

  • libs/libmythtv/mythplayer.cpp

    diff -u -r -p mythtv.103/libs/libmythtv/mythplayer.cpp mythtv/libs/libmythtv/mythplayer.cpp
    old new bool MythPlayer::Pause(void) 
    340340    }
    341341    next_play_speed   = 0.0;
    342342    next_normal_speed = false;
    343     PauseDecoder();
    344343    PauseVideo();
    345344    audio.Pause(true);
     345    PauseDecoder();
    346346    PauseBuffer();
    347347    allpaused = decoderPaused && videoPaused && bufferPaused;
    348348    {
    bool MythPlayer::Play(float speed, bool  
    371371    }
    372372
    373373    UnpauseBuffer();
     374    UnpauseDecoder();
    374375    if (unpauseaudio)
    375376        audio.Pause(false);
    376377    UnpauseVideo();
    377     UnpauseDecoder();
    378378    allpaused = false;
    379379    next_play_speed   = speed;
    380380    next_normal_speed = normal;