aboutsummaryrefslogtreecommitdiff
path: root/engines/player/test
diff options
context:
space:
mode:
authorPacketVideo CM <engbuild@pv.com>2010-03-02 16:25:54 -0800
committerPacketVideo CM <engbuild@pv.com>2010-03-02 16:25:54 -0800
commit44dddff7653fa82ce8f22c07b314e1d653627eb1 (patch)
tree05e258cdbccfc8716286f1c1bb8876bbec7fbb67 /engines/player/test
parent561aaf76079d56a5c6b5f7e9a10f1353a89d9a72 (diff)
downloadopencore-44dddff7653fa82ce8f22c07b314e1d653627eb1.tar.gz
RIO-8193: Addition of Large File Support in MP4 Parser Library
Diffstat (limited to 'engines/player/test')
-rw-r--r--engines/player/test/src/test_pv_player_engine_testset8.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/player/test/src/test_pv_player_engine_testset8.cpp b/engines/player/test/src/test_pv_player_engine_testset8.cpp
index 990fa5e06..1a217794f 100644
--- a/engines/player/test/src/test_pv_player_engine_testset8.cpp
+++ b/engines/player/test/src/test_pv_player_engine_testset8.cpp
@@ -1,5 +1,5 @@
/* ------------------------------------------------------------------
- * Copyright (C) 1998-2009 PacketVideo
+ * Copyright (C) 1998-2010 PacketVideo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -85,6 +85,11 @@
OsclFileHandle* iFileHandle;
FILE *fp;
+#if (OSCL_HAS_LARGE_FILE_SUPPORT)
+#ifdef ANDROID
+int32 iFileDescriptor;
+#endif
+#endif
//
// pvplayer_async_test_printmetadata section
//
@@ -2850,7 +2855,17 @@ void pvplayer_async_test_playuntileos_using_external_file_handle::Run()
if (!iLocalDataSource)
{
+#if (OSCL_HAS_LARGE_FILE_SUPPORT)
+#ifdef ANDROID
+ iFileDescriptor = open((char*)iFileName, O_RDONLY | O_LARGEFILE);
+ //Populate FILE*
+ fp = fdopen(iFileDescriptor, "rb");
+#else
fp = fopen((char*)iFileName, "rb");
+#endif
+#else
+ fp = fopen((char*)iFileName, "rb");
+#endif
if (fp)
{
iFileHandle = OSCL_NEW(OsclFileHandle, (fp));