1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-27 19:01:07 +00:00

demux_libass: actually set priv context

This was a memory leak: the ASS_Track was never deallocated.
This commit is contained in:
wm4 2013-07-24 19:47:22 +02:00
parent 202b9e8069
commit 3f04bf2722

View File

@ -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;