--- a/mmplugins/lib3gp/impl/src/mp4compose.cpp Mon Jun 21 17:23:11 2010 +0300
+++ b/mmplugins/lib3gp/impl/src/mp4compose.cpp Thu Jul 15 20:22:56 2010 +0300
@@ -1095,6 +1095,16 @@
{
MP4HandleImp handle = (MP4HandleImp)apihandle;
handle->flags |= flags;
+
+ PRINT((_L("Flags: %X"), handle->flags));
+ PRINT((_L("Heap memory max size: %d"), User::Heap().MaxLength()));
+
+ if (User::Heap().MaxLength() >= 0xC00000)
+ {
+ handle->flags &= ~MP4_FLAG_LONGCLIP; // unset the flag as we have enough memory
+ }
+
+ PRINT((_L("Flags: %X"), handle->flags));
if (handle->flags & MP4_FLAG_METADATALAST)
{