Skip to content

Commit dff5f66

Browse files
committed
fix connector code
1 parent 51fcfbb commit dff5f66

5 files changed

Lines changed: 23 additions & 2 deletions

File tree

0 Bytes
Binary file not shown.

ffmpegMovieCodecPlugin/MovieCodec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ m_nMaxCacheFrames(30)
7272
m_pAudioCapture = new CAudioCapture();
7373
m_bCaptureAudio = true;
7474

75-
OUTPUT_LOG("MovieCodec intialized\n");
75+
OUTPUT_LOG("MovieCodec initialized\n");
7676
}
7777

7878
ParaEngine::MovieCodec::~MovieCodec()

ffmpegMovieCodecPlugin/MovieCodecPlugin.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,24 @@ extern "C" {
2525
CORE_EXPORT_DECL ParaEngine::ClassDescriptor* LibClassDesc(int i);
2626
CORE_EXPORT_DECL void LibInit();
2727
CORE_EXPORT_DECL void LibActivate(int nType, void* pVoid);
28+
CORE_EXPORT_DECL void LibInitParaEngine(ParaEngine::IParaEngineCore* pCoreInterface);
2829
#ifdef __cplusplus
2930
} /* extern "C" */
3031
#endif
3132

33+
34+
ParaEngine::IParaEngineCore* g_pCoreInterface = NULL;
35+
ParaEngine::IParaEngineCore* GetCoreInterface()
36+
{
37+
return g_pCoreInterface;
38+
}
39+
40+
CORE_EXPORT_DECL void LibInitParaEngine(ParaEngine::IParaEngineCore* pCoreInterface)
41+
{
42+
g_pCoreInterface = pCoreInterface;
43+
}
44+
45+
3246
HINSTANCE Instance = NULL;
3347

3448
using namespace ParaEngine;

ffmpegMovieCodecPlugin/MovieCodecPlugin.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ EXPORTS
66
LibVersion @4
77
LibInit @5
88
LibActivate @6
9+
LibInitParaEngine @7
910

1011
SECTIONS
1112
.data READ WRITE

ffmpegMovieCodecPlugin/stdafx.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@
88

99

1010
#include "PluginAPI.h"
11+
12+
/**
13+
* Optional NPL includes, just in case you want to use some core functions see GetCoreInterface()
14+
*/
15+
#include "IParaEngineCore.h"
1116
#include "IParaEngineApp.h"
1217

18+
extern ParaEngine::IParaEngineCore* GetCoreInterface();
1319

1420
#ifndef OUTPUT_LOG
15-
#define OUTPUT_LOG ParaEngine::CParaEngineCore::GetParaEngineCOREInterface()->GetAppInterface()->WriteToLog
21+
#define OUTPUT_LOG GetCoreInterface()->GetAppInterface()->WriteToLog
1622
//#define OUTPUT_LOG printf
1723
#endif
1824

0 commit comments

Comments
 (0)