Ticket #3425: ticket_3425_fix.diff

File ticket_3425_fix.diff, 740 bytes (added by skamithi, 13 years ago)

check if GetDecoder?() exists.. needed since I changed IsNearEnd? to work with prerecorded shows.

  • NuppelVideoPlayer.cpp

     
    40814081{
    40824082    long long framesRead, framesLeft;
    40834083
    4084     if (!m_playbackinfo || m_playbackinfo->isVideo)
     4084    if (!m_playbackinfo || m_playbackinfo->isVideo || !GetDecoder())
    40854085        return false;
    40864086   
    40874087    margin = (margin >= 0) ? margin: (long long) (video_frame_rate*2);
    40884088    margin = (long long) (margin * audio_stretchfactor);
    40894089    bool watchingTV = watchingrecording && nvr_enc && nvr_enc->IsValidRecorder();
    4090    
     4090
    40914091    framesRead = GetDecoder()->GetFramesRead();
    40924092 
    40934093    if (m_tv && m_tv->GetState() == kState_WatchingPreRecorded)