List Info

Thread: r208 - trunk/libnut/demuxer.c




r208 - trunk/libnut/demuxer.c
user name
2006-11-15 10:28:10
Author: ods15
Date: Wed Nov 15 11:28:10 2006
New Revision: 208

Modified:
   trunk/libnut/demuxer.c

Log:
make the demuxer handle the info allocating and freeing


Modified: trunk/libnut/demuxer.c
============================================================
==================
--- trunk/libnut/demuxer.c	(original)
+++ trunk/libnut/demuxer.c	Wed Nov 15 11:28:10 2006
 -1414,11
+1414,17 
 		nut->alloc->free(nut->sc[i].sh.codec_specific);
 		nut->alloc->free(nut->sc[i].pts_cache);
 	}
+	for (i = 0; i < nut->info_count; i++) {
+		int j;
+		for (j = 0; j < nut->info[i].count; j++)
nut->alloc->free(nut->info[i].fields[j].data);
+		nut->alloc->free(nut->info[i].fields);
+	}
 
 	nut->alloc->free(nut->syncpoints.s);
 	nut->alloc->free(nut->syncpoints.pts);
 	nut->alloc->free(nut->syncpoints.eor);
 	nut->alloc->free(nut->sc);
+	nut->alloc->free(nut->info);
 	nut->alloc->free(nut->tb);
 	nut->alloc->free(nut->seek_state);
 	free_buffer(nut->i);
_______________________________________________
NUT-devel mailing list
NUT-develmplayerhq.hu

http://lists.mplayerhq.hu/mailman/listinfo/nut-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )