changeset 1229:c9ff58a0feab

An experimental attempt to reduce the number of stream opens for AAC, by Christian @Joker" Birchinger. Tell him if it breaks.
author Tony Vroon <chainsaw@gentoo.org>
date Tue, 10 Jul 2007 23:04:17 +0100
parents 01efa0e5b554
children f45a99c8bc0d e2b45aa596ad
files src/aac/src/libmp4.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/aac/src/libmp4.c	Tue Jul 10 14:21:15 2007 +0900
+++ b/src/aac/src/libmp4.c	Tue Jul 10 23:04:17 2007 +0100
@@ -845,9 +845,9 @@
         g_thread_exit(NULL);
 
     ret = parse_aac_stream(mp4fh);
-    vfs_fclose(mp4fh);
 
-    mp4fh = vfs_fopen(filename, "rb");
+    vfs_fseek(mp4fh, 0, SEEK_SET);
+
     mp4cb->read = mp4_read_callback;
     mp4cb->seek = mp4_seek_callback;
     mp4cb->user_data = mp4fh;