Skip to content

Commit e347172

Browse files
author
Sahil Sachdeva
committed
Follow-up - Renaming OMX Master Core methods, to fix build break because of missing
changes in Player, Author and FMU Test apps.
1 parent 0a14ae9 commit e347172

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

android/drm/oma1/test/test_pv_player_engine_main.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "unit_test_args.h"
3535

3636
#include "OMX_Core.h"
37+
#include "pv_omxcore.h"
3738

3839
void FindSourceFile( cmd_line* command_line,
3940
OSCL_HeapString<OsclMemAllocator> &aFileNameInfo,
@@ -199,7 +200,7 @@ int local_main(cmd_line* command_line )
199200
OsclErrorTrap::Init();
200201
OsclMem::Init();
201202

202-
OMX_Init();
203+
OMX_MasterInit();
203204

204205
//Run the test under a trap
205206
int result = 0;
@@ -219,7 +220,7 @@ int local_main(cmd_line* command_line )
219220
}
220221

221222
//Cleanup
222-
OMX_Deinit();
223+
OMX_MasterDeinit();
223224

224225
OsclMem::Cleanup();
225226
OsclErrorTrap::Cleanup();

engines/adapters/player/framemetadatautility/test/src/test_pv_frame_metadata_utility.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "oscl_string_utils.h"
3636

3737
#include "OMX_Core.h"
38+
#include "pv_omxcore.h"
3839

3940
#ifndef DEFAULTSOURCEFILENAME
4041
#error // The default source file needs to be defined in config file
@@ -740,7 +741,7 @@ int local_main(FILE* filehandle, cmd_line* command_line)
740741
OsclBase::Init();
741742
OsclErrorTrap::Init();
742743
OsclMem::Init();
743-
OMX_Init();
744+
OMX_MasterInit();
744745

745746
const int numArgs = 10; //change as per the number of args below
746747
char *argv[numArgs];
@@ -798,7 +799,7 @@ int local_main(FILE* filehandle, cmd_line* command_line)
798799
}
799800

800801
//Cleanup
801-
OMX_Deinit();
802+
OMX_MasterDeinit();
802803
#if !(OSCL_BYPASS_MEMMGT)
803804
//Check for memory leaks before cleaning up OsclMem.
804805
OsclAuditCB auditCB;

engines/author/test/src/pvaetest.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
#if USE_OMX_ENC_NODE
4343
#include "OMX_Core.h"
44+
#include "pv_omxcore.h"
4445
#endif
4546

4647
FILE* file;
@@ -1712,7 +1713,7 @@ int local_main(FILE* filehandle, cmd_line* command_line)
17121713
OsclMem::Init();
17131714

17141715
#if USE_OMX_ENC_NODE
1715-
OMX_Init();
1716+
OMX_MasterInit();
17161717
#endif
17171718

17181719
{
@@ -1739,7 +1740,7 @@ int local_main(FILE* filehandle, cmd_line* command_line)
17391740
fprintf(file, "Error! Leave %d\n", err);
17401741
}
17411742
#if USE_OMX_ENC_NODE
1742-
OMX_Deinit();
1743+
OMX_MasterDeinit();
17431744
#endif
17441745
//Cleanup
17451746
#if !(OSCL_BYPASS_MEMMGT)

engines/player/test/src/test_pv_player_engine.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
#endif
145145

146146
#include "OMX_Core.h"
147+
#include "pv_omxcore.h"
147148

148149
#ifndef OSCL_UTF8CONV_H
149150
#include "oscl_utf8conv.h"
@@ -1696,7 +1697,7 @@ int local_main(FILE *filehandle, cmd_line* command_line)
16961697
OsclBase::Init();
16971698
OsclErrorTrap::Init();
16981699
OsclMem::Init();
1699-
OMX_Init();
1700+
OMX_MasterInit();
17001701

17011702

17021703
{
@@ -1722,7 +1723,7 @@ int local_main(FILE *filehandle, cmd_line* command_line)
17221723
fprintf(file, "Error! Leave %d\n", err);
17231724
}
17241725
//Cleanup
1725-
OMX_Deinit();
1726+
OMX_MasterDeinit();
17261727

17271728
#if !(OSCL_BYPASS_MEMMGT)
17281729
//Check for memory leaks before cleaning up OsclMem.

engines/player/test/src/test_pv_player_engine_testset1.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -17473,6 +17473,7 @@ void pvplayer_async_test_multipauseseekresume::HandleInformationalEvent(const PV
1747317473
#include "pvmf_local_data_source.h"
1747417474
#include "oscl_scheduler.h"
1747517475
#include "OMX_Core.h"
17476+
#include "pv_omxcore.h"
1747617477
#include "oscl_mem_audit.h"
1747717478

1747817479
//test observer function for the 2nd instance.
@@ -17501,7 +17502,7 @@ void pvplayer_async_test_multiple_instance::InThread(pvplayer_async_test_multipl
1750117502
{
1750217503
//Init Oscl
1750317504
OsclMem::Init();
17504-
OMX_Init();
17505+
OMX_MasterInit();
1750517506
PVLogger::Init();
1750617507
OsclScheduler::Init("pvplayer_async_test_multiple_instance");
1750717508

@@ -17532,7 +17533,7 @@ void pvplayer_async_test_multiple_instance::InThread(pvplayer_async_test_multipl
1753217533
//Cleanup Oscl.
1753317534
OsclScheduler::Cleanup();
1753417535
PVLogger::Cleanup();
17535-
OMX_Deinit();
17536+
OMX_MasterDeinit();
1753617537
//note: there's no memory leak check here since
1753717538
//this thread exits before the main thread.
1753817539
OsclMem::Cleanup();

0 commit comments

Comments
 (0)