From: John Törnblom Date: Tue, 8 Jan 2013 22:50:09 +0000 (+0100) Subject: mkv: fixed typo causing endless loop when chapters are created X-Git-Tag: v3.5~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de818c09f25199f32eba8c75bd7d55d1fa4d3c46;p=thirdparty%2Ftvheadend.git mkv: fixed typo causing endless loop when chapters are created --- diff --git a/src/muxer/tvh/mkmux.c b/src/muxer/tvh/mkmux.c index 2837edb37..54113d75a 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); }