mirror of https://github.com/mpv-player/mpv
demux_libass: actually set priv context
This was a memory leak: the ASS_Track was never deallocated.
This commit is contained in:
parent
202b9e8069
commit
3f04bf2722
|
@ -94,6 +94,7 @@ static int d_check_file(struct demuxer *demuxer, enum demux_check check)
|
|||
*p = (struct priv) {
|
||||
.track = track,
|
||||
};
|
||||
demuxer->priv = p;
|
||||
|
||||
struct sh_stream *sh = new_sh_stream(demuxer, STREAM_SUB);
|
||||
sh->sub->track = track;
|
||||
|
|
Loading…
Reference in New Issue