Skip to content

Commit

Permalink
Apply additional changes from third patch in ticket #11455 that shoul…
Browse files Browse the repository at this point in the history
…d have been applied in [e5e9cc8].  The first patch was applied by mistake.

Refs #11455
  • Loading branch information
peper03 committed Jul 9, 2013
1 parent 010a87d commit 811be23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp
Expand Up @@ -1540,7 +1540,7 @@ bool DVDRingBuffer::DecodeSubtitles(AVSubtitle *sub, int *gotSubtitles,
sub->rects = NULL;
sub->num_rects = 0;
sub->start_display_time = startTime;
sub->end_display_time = 0xFFFFFFFF;
sub->end_display_time = startTime;

cmd_pos = GETBE16(spu_pkt + 2);
while ((cmd_pos + 4) < buf_size)
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/DVD/mythdvdplayer.cpp
Expand Up @@ -618,6 +618,7 @@ void MythDVDPlayer::DisplayDVDButton(void)
}

if (dvdSubtitle &&
(dvdSubtitle->end_display_time > dvdSubtitle->start_display_time) &&
(dvdSubtitle->end_display_time < currentFrame->timecode))
{
expired = true;
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/subtitlereader.cpp
Expand Up @@ -60,10 +60,10 @@ bool SubtitleReader::AddAVSubtitle(const AVSubtitle &subtitle,
m_AVSubtitles.buffers.push_back(subtitle);
// in case forced subtitles aren't displayed, avoid leaking by
// manually clearing the subtitles
if (m_AVSubtitles.buffers.size() > 20)
if (m_AVSubtitles.buffers.size() > 40)
{
LOG(VB_GENERAL, LOG_ERR,
"SubtitleReader: >20 AVSubtitles queued - clearing.");
"SubtitleReader: >40 AVSubtitles queued - clearing.");
clearsubs = true;
}
m_AVSubtitles.lock.unlock();
Expand Down

0 comments on commit 811be23

Please sign in to comment.