Skip to content

Commit

Permalink
xine: Store pointer to parsed subtitles in the demuxstr struct.
Browse files Browse the repository at this point in the history
This field already exists in the data structure, it just wasn't
populated before. Previously the only pointer to the parsed subtitles
was the one returned by the function.
  • Loading branch information
linuxdude42 committed Aug 7, 2020
1 parent ae00e52 commit 3995541
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/captions/xine_demux_sputext.cpp
Expand Up @@ -1232,6 +1232,7 @@ subtitle_t *sub_read_file (demux_sputext_t *demuxstr) {
}
#endif

demuxstr->subtitles = first;
// No memory leak of 'sub' here. 'Sub' always points to an element in 'first'.
// NOLINT(clang-analyzer-unix.Malloc)
return first;
Expand Down

0 comments on commit 3995541

Please sign in to comment.