shithub: aacdec

Download patch

ref: 0f811a00b09c72e87a84031465dd023b3b295c94
parent: 2737378f8dbd9e362909e19956f817adc78df16a
author: ca5e <ca5e>
date: Wed Oct 29 13:14:46 EST 2003

Fixes

--- a/plugins/foo_mp4/foo_mp4.cpp
+++ b/plugins/foo_mp4/foo_mp4.cpp
@@ -22,7 +22,7 @@
 ** Commercial non-GPL licensing of this software is possible.
 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
 **
-** $Id: foo_mp4.cpp,v 1.66 2003/10/17 16:23:05 ca5e Exp $
+** $Id: foo_mp4.cpp,v 1.67 2003/10/29 18:14:46 ca5e Exp $
 **/
 
 #include <mp4.h>
@@ -48,7 +48,7 @@
 #endif
 
 DECLARE_COMPONENT_VERSION ("MPEG-4 AAC decoder",
-                           "1.65",
+                           "1.66",
                            "Based on FAAD2 v" FAAD2_VERSION "\nCopyright (C) 2002-2003 http://www.audiocoding.com" );
 
 static const char *object_type_string(int type)
@@ -337,6 +337,12 @@
 
         MP4MetadataDelete(hFile);
 
+        MP4Close(hFile);
+
+        hFile = MP4ModifyCb(0, 0, open_cb, close_cb, read_cb, write_cb,
+            setpos_cb, getpos_cb, filesize_cb, (void*)m_reader);
+        if (hFile == MP4_INVALID_FILE_HANDLE) return SET_INFO_FAILURE;
+
         /* replay gain writing */
         const char *p = NULL;
 
@@ -971,6 +977,7 @@
 
     virtual set_info_t set_info(reader *r,const file_info *info)
     {
+        tag_remover::g_run(r);
         return tag_writer::g_run(r,info,"ape") ? SET_INFO_SUCCESS : SET_INFO_FAILURE;
     }