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
1 changed files with 1 additions and 0 deletions

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;