changeset 1232:574d0cc96a39

merge again
author Cristi Magherusan <majeru@atheme-project.org>
date Wed, 11 Jul 2007 04:35:57 +0300
parents e2b45aa596ad (current diff) f45a99c8bc0d (diff)
children 51f63dd24b9b 8af27e02e7b7
files
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/aac/src/libmp4.c	Wed Jul 11 04:30:31 2007 +0300
+++ b/src/aac/src/libmp4.c	Wed Jul 11 04:35:57 2007 +0300
@@ -846,7 +846,12 @@
 
     ret = parse_aac_stream(mp4fh);
 
-    vfs_fseek(mp4fh, 0, SEEK_SET);
+    if( ret == TRUE )
+        vfs_fseek(mp4fh, 0, SEEK_SET);
+    else {
+        vfs_fclose(mp4fh);
+        mp4fh = vfs_fopen(filename, "rb");
+    }
 
     mp4cb->read = mp4_read_callback;
     mp4cb->seek = mp4_seek_callback;