changeset 29832:07a96d936943

Free demuxer->teletext when closing the demuxer.
author reimar
date Tue, 10 Nov 2009 11:26:03 +0000
parents 8f20788b3610
children b06429c8c104
files libmpdemux/demuxer.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Tue Nov 10 11:24:29 2009 +0000
+++ b/libmpdemux/demuxer.c	Tue Nov 10 11:26:03 2009 +0000
@@ -39,6 +39,7 @@
 #include "mf.h"
 
 #include "libaf/af_format.h"
+#include "libmpcodecs/dec_teletext.h"
 
 #ifdef CONFIG_ASS
 #include "libass/ass.h"
@@ -389,6 +390,8 @@
         }
         free(demuxer->attachments);
     }
+    if (demuxer->teletext)
+        teletext_control(demuxer->teletext, TV_VBI_CONTROL_STOP, NULL);
     free(demuxer);
 }