diff options
Diffstat (limited to 'demux/timeline.c')
-rw-r--r-- | demux/timeline.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/demux/timeline.c b/demux/timeline.c index 6274c25fa3..9910abf46d 100644 --- a/demux/timeline.c +++ b/demux/timeline.c @@ -32,11 +32,8 @@ void timeline_destroy(struct timeline *tl) return; for (int n = 0; n < tl->num_sources; n++) { struct demuxer *d = tl->sources[n]; - if (d != tl->demuxer) { - struct stream *s = d->stream; - free_demuxer(d); - free_stream(s); - } + if (d != tl->demuxer) + free_demuxer_and_stream(d); } talloc_free(tl); } |