From de818c09f25199f32eba8c75bd7d55d1fa4d3c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Tue, 8 Jan 2013 23:50:09 +0100 Subject: [PATCH] mkv: fixed typo causing endless loop when chapters are created --- src/muxer/tvh/mkmux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/muxer/tvh/mkmux.c b/src/muxer/tvh/mkmux.c index 2837edb3..54113d75 100644 --- a/src/muxer/tvh/mkmux.c +++ b/src/muxer/tvh/mkmux.c @@ -1145,6 +1145,7 @@ mk_mux_destroy(mk_mux_t *mkm) mk_chapter_t *ch; while((ch = TAILQ_FIRST(&mkm->chapters)) != NULL) { + TAILQ_REMOVE(&mkm->chapters, ch, link); free(ch); }