Ticket #1682: cleanup_subtitles_on_channel_change-proper.diff

File cleanup_subtitles_on_channel_change-proper.diff, 799 bytes (added by Pekka Jääskeläinen <pekka.jaaskelainen@…>, 20 years ago)

Proper patch, as instructed by Isaac.

  • libs/libmythtv/NuppelVideoPlayer.cpp

     
    21782178        return;
    21792179    }
    21802180
    2181     if (eof)
     2181    if (eof) {
    21822182        discontinuity = true;
     2183        if (osdHasSubtitles || nonDisplayedSubtitles.size() > 0)
     2184            ClearSubtitles();
     2185    }
    21832186
    21842187    livetvchain->SetProgram(pginfo);
    21852188
     
    22522255    VERBOSE(VB_PLAYBACK, "JumpToProgram(void)");
    22532256    bool discontinuity = false, newtype = false;
    22542257    ProgramInfo *pginfo = livetvchain->GetSwitchProgram(discontinuity, newtype);
     2258    if (osdHasSubtitles || nonDisplayedSubtitles.size() > 0)
     2259        ClearSubtitles();
     2260
    22552261    if (!pginfo)
    22562262        return;
    22572263