changeset 20925:74b8d7cf4edb

update to libnut API, don't free the streams
author ods15
date Wed, 15 Nov 2006 11:26:05 +0000
parents abde88225c3a
children 623e0adc71a2
files libmpdemux/demux_nut.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nut.c	Wed Nov 15 10:37:41 2006 +0000
+++ b/libmpdemux/demux_nut.c	Wed Nov 15 11:26:05 2006 +0000
@@ -275,9 +275,8 @@
 }
 
 static void demux_close_nut(demuxer_t *demuxer) {
-	nut_context_t * nut = ((nut_priv_t*)demuxer->priv)->nut;
-	nut_demuxer_uninit(nut);
-	free(((nut_priv_t*)demuxer->priv)->s);
+	nut_priv_t * priv = demuxer->priv;
+	nut_demuxer_uninit(priv->nut);
 	free(demuxer->priv);
 	demuxer->priv = NULL;
 }