]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mkv: fixed typo causing endless loop when chapters are created
authorJohn Törnblom <john.tornblom@gmail.com>
Tue, 8 Jan 2013 22:50:09 +0000 (23:50 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Tue, 8 Jan 2013 23:00:14 +0000 (00:00 +0100)
src/muxer/tvh/mkmux.c

index 2837edb371fd8ae83e681b56a7dde9949967649c..54113d75a8b3b0ce322b436521b3d97c2ef6acce 100644 (file)
@@ -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);
   }