Skip to content

Commit

Permalink
xine: Don't eat the last MPSUB subtitle.
Browse files Browse the repository at this point in the history
Also remove a debugging message.
  • Loading branch information
linuxdude42 committed Aug 7, 2020
1 parent b266993 commit d76fec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/captions/xine_demux_sputext.cpp
Expand Up @@ -647,7 +647,7 @@ static subtitle_t *sub_read_line_mpsub (demux_sputext_t *demuxstr, subtitle_t *c

while (num < SUB_MAX_TEXT) {
if (!read_line_from_input(demuxstr, line, LINE_LEN))
return nullptr;
return (num > 0) ? current : nullptr;

char *p=line;
while (isspace(*p))
Expand All @@ -664,7 +664,7 @@ static subtitle_t *sub_read_line_mpsub (demux_sputext_t *demuxstr, subtitle_t *c
*q='\0';
if (strlen(p)) {
current->text[num]=strdup(p);
printf(">%s<\n",p);
/* printf(">%s<\n",p); */
current->lines = ++num;
} else {
if (num)
Expand Down

0 comments on commit d76fec6

Please sign in to comment.