class PvmiMIOControl;
-class PV2WayDummyInputMIONodeFactory: public PV2WayMIONodeFactory
+class PV2WayDummyInputMIONodeFactory: public HeapBase, public PV2WayMIONodeFactory
{
public:
+ void Release()
+ {
+ delete this;
+ }
PV2WayDummyInputMIONodeFactory() {};
virtual ~PV2WayDummyInputMIONodeFactory() {};
OSCL_IMPORT_REF virtual PVMFNodeInterface* Create(LipSyncDummyMIOSettings& aSettings);
#include "lipsync_dummy_settings.h"
class PvmiMIOControl;
-class PV2WayDummyOutputMIONodeFactory : public PV2WayMIONodeFactory
+class PV2WayDummyOutputMIONodeFactory : public HeapBase, public PV2WayMIONodeFactory
{
public:
+ void Release()
+ {
+ delete this;
+ }
PV2WayDummyOutputMIONodeFactory() {};
virtual ~PV2WayDummyOutputMIONodeFactory() {};
OSCL_IMPORT_REF virtual PVMFNodeInterface* Create(LipSyncDummyMIOSettings& aSettings);
#include "pv_2way_mio_node_factory.h"
#include "pvmi_mio_fileinput_factory.h"
-class PV2WayMediaInputMIONodeFactory: public PV2WayMIONodeFactory
+class PV2WayMediaInputMIONodeFactory: public HeapBase, public PV2WayMIONodeFactory
{
public:
- PV2WayMediaInputMIONodeFactory() {};
- virtual ~PV2WayMediaInputMIONodeFactory() {};
+ OSCL_IMPORT_REF void Release()
+ {
+ delete this;
+ }
+ OSCL_IMPORT_REF PV2WayMediaInputMIONodeFactory() {};
+ OSCL_IMPORT_REF virtual ~PV2WayMediaInputMIONodeFactory() {};
OSCL_IMPORT_REF virtual PVMFNodeInterface* Create(PvmiMIOFileInputSettings& aFileSettings);
OSCL_IMPORT_REF virtual void Delete(PVMFNodeInterface** mioNode);
private:
#include "pvmi_mio_fileinput_factory.h"
-class PV2WayMediaOutputMIONodeFactory : public PV2WayMIONodeFactory
+class PV2WayMediaOutputMIONodeFactory : public HeapBase, public PV2WayMIONodeFactory
{
public:
- PV2WayMediaOutputMIONodeFactory() {};
- virtual ~PV2WayMediaOutputMIONodeFactory() {};
+ OSCL_IMPORT_REF void Release()
+ {
+ delete this;
+ }
+ OSCL_IMPORT_REF PV2WayMediaOutputMIONodeFactory() {};
+ OSCL_IMPORT_REF virtual ~PV2WayMediaOutputMIONodeFactory() {};
OSCL_IMPORT_REF virtual PVMFNodeInterface* Create(PvmiMIOFileInputSettings& aFileSettings);
OSCL_IMPORT_REF virtual void Delete(PVMFNodeInterface** mioNode);
private:
PVMFFormatType& aMimeString,
int& aMedia_type);
- void OutputInfo(const char * str, ...)
+ void OutputInfo(PVLogger::log_level_type aLogLevel, const char * str, ...)
{
va_list args;
va_start(args, str);
{
iLogger = PVLogger::GetLoggerObject("PV2WaySourceAndSinks.PV2WayMIO");
}
- PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_DEBUG,
+ PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, aLogLevel,
(0, "---PV2WayMIO:: %s", buffer));
va_end(args);
}
class PV2WayMIONodeFactory
{
public:
- PV2WayMIONodeFactory() {};
- virtual ~PV2WayMIONodeFactory() {};
- //virtual PVMFNodeInterface* Create() = 0;
+ virtual void Release() = 0;
virtual void Delete(PVMFNodeInterface** mioNode) = 0;
+
+ protected:
+ virtual ~PV2WayMIONodeFactory() {};
};
OSCL_IMPORT_REF PV2WayMIO* GetMIO(TPVDirection aDir,
PV2WayMediaType aMediaType);
- virtual void OutputInfo(const char * str, ...) = 0;
+ virtual void OutputInfo(PVLogger::log_level_type aLogLevel, const char * str, ...) = 0;
TPVDirection adir,
PVMFNodeInterface** aMioNode);
protected:
- void OutputInfo(const char * str, ...)
+ void OutputInfo(PVLogger::log_level_type aLogLevel, const char * str, ...)
{
+ OSCL_UNUSED_ARG(aLogLevel);
// output to screen everything in formatted string
va_list ap;
va_start(ap, str);
TPVDirection adir,
PVMFNodeInterface** aMioNode);
protected:
- void OutputInfo(const char * str, ...)
+ void OutputInfo(PVLogger::log_level_type aLogLevel, const char * str, ...)
{
+ OSCL_UNUSED_ARG(aLogLevel);
// output to screen everything in formatted string
va_list ap;
va_start(ap, str);
}
else
{
- OutputInfo("PV2WayMIO::AddCompleted:: Failed to add MIO");
+ OutputInfo(PVLOGMSG_ERR, "PV2WayMIO::AddCompleted:: Failed to add MIO");
Closed();
}
*iMioNode));
if (error)
{
- OutputInfo("PV2WayMIO::Add():: Error Adding Data Sink!");
+ OutputInfo(PVLOGMSG_ERR, "PV2WayMIO::Add():: Error Adding Data Sink!");
}
return iAddId;
}
*iMioNode));
if (error)
{
- OutputInfo("PV2WayMIO::Add():: Error Adding Data Source!");
+ OutputInfo(PVLOGMSG_ERR, "PV2WayMIO::Add():: Error Adding Data Source!");
}
return iAddId;
}
}
else if (!iRemoving)
{
- OutputInfo("\nError: MIO already added!\n");
+ OutputInfo(PVLOGMSG_ERR, "\nError: MIO already added!\n");
}
else if (iRemoving)
{
- OutputInfo("\nCannot add because attempting to remove MIO!\n");
+ OutputInfo(PVLOGMSG_ERR, "\nCannot add because attempting to remove MIO!\n");
}
return -1;
}
OSCL_TRY(error, iRemoveId = iTerminal->RemoveDataSink(*iMioNode));
if (error)
{
- OutputInfo("\n Error in RemoveDataSink!\n");
+ OutputInfo(PVLOGMSG_ERR, "\n Error in RemoveDataSink!\n");
}
return iRemoveId;
}
OSCL_TRY(error, iRemoveId = iTerminal->RemoveDataSource(*iMioNode));
if (error)
{
- OutputInfo("\n Error in RemoveDataSource!\n");
+ OutputInfo(PVLOGMSG_ERR, "\n Error in RemoveDataSource!\n");
}
return iRemoveId;
}
}
else if (!iAdded)
{
- OutputInfo("\nError: MIO cannot be removed because has not been added!\n");
+ OutputInfo(PVLOGMSG_ERR, "\nError: MIO cannot be removed because has not been added!\n");
}
return -1;
}
{
if (((PVAsyncInformationalEvent&)aEvent).GetLocalBuffer()[0] == PV_VIDEO)
{
- OutputInfo("PVT_INDICATION_INCOMING_TRACK video, id %d\n", id);
+ OutputInfo(PVLOGMSG_INFO, "PVT_INDICATION_INCOMING_TRACK video, id %d\n", id);
}
else if (((PVAsyncInformationalEvent&)aEvent).GetLocalBuffer()[0] == PV_AUDIO)
{
- OutputInfo("PVT_INDICATION_INCOMING_TRACK audio, id %d\n", id);
+ OutputInfo(PVLOGMSG_INFO, "PVT_INDICATION_INCOMING_TRACK audio, id %d\n", id);
}
}
else if (PVT_INDICATION_OUTGOING_TRACK == aEvent.GetEventType())
{
if (((PVAsyncInformationalEvent&)aEvent).GetLocalBuffer()[0] == PV_VIDEO)
{
- OutputInfo("PVT_INDICATION_OUTGOING_TRACK video, id %d\n", id);
+ OutputInfo(PVLOGMSG_INFO, "PVT_INDICATION_OUTGOING_TRACK video, id %d\n", id);
}
else if (((PVAsyncInformationalEvent&)aEvent).GetLocalBuffer()[0] == PV_AUDIO)
{
- OutputInfo("PVT_INDICATION_OUTGOING_TRACK audio, id %d\n", id);
+ OutputInfo(PVLOGMSG_INFO, "PVT_INDICATION_OUTGOING_TRACK audio, id %d\n", id);
}
}
if (iChannelId == id)
{
- OutputInfo("\nDuplicate callback for id %d\n", id);
+ OutputInfo(PVLOGMSG_WARNING, "\nDuplicate callback for id %d\n", id);
return -1;
}
if (iChannelId)
{
- OutputInfo("\nBusy ... MIO id=%d being closed\n", iChannelId);
+ OutputInfo(PVLOGMSG_WARNING, "\nBusy ... MIO id=%d being closed\n", iChannelId);
iNextChannelId = id;
return -1;
}
}
else
{
- OutputInfo("\nDid not find a codec!!! \n");
+ OutputInfo(PVLOGMSG_WARNING, "\nDid not find a codec!!! \n");
}
}
return retvalue;
iFormatsMap.begin();
if (it == iFormatsMap.end())
{
- OutputInfo("No formats added.");
+ OutputInfo(PVLOGMSG_NOTICE, "No formats added.");
return;
}
// loop through each, output values
{
CodecSpecifier* codec = (*it++).second;
PVMFFormatType format = codec->GetFormat();
- OutputInfo("%s", format.getMIMEStrPtr());
- OutputInfo(" ");
+ OutputInfo(PVLOGMSG_INFO, "%s", format.getMIMEStrPtr());
+ OutputInfo(PVLOGMSG_INFO, " ");
}
}
CodecSpecifier* formatInList = FormatInList(aMimeString);
if (!formatInList)
{
- OutputInfo("Format %s does not match application capability\n", aMimeString.getMIMEStrPtr());
+ OutputInfo(PVLOGMSG_INFO, "Format %s does not match application capability\n", aMimeString.getMIMEStrPtr());
}
else
{
- OutputInfo("Format %s matches application capabilities\n", aMimeString.getMIMEStrPtr());
+ OutputInfo(PVLOGMSG_INFO, "Format %s matches application capabilities\n", aMimeString.getMIMEStrPtr());
}
return formatInList;
mio->ClearCodecs();
return 0;
}
- OutputInfo("PV2WaySourceAndSinksBase::ResetPreferredCodec: Error! No MIO of given dir, type");
+ OutputInfo(PVLOGMSG_ERR, "PV2WaySourceAndSinksBase::ResetPreferredCodec: Error! No MIO of given dir, type");
return -1;
}
{
TPVDirection dir = (TPVDirection)((PVAsyncInformationalEvent&)aEvent).GetLocalBuffer()[0];
TPVChannelId id = GetIdFromLocalBuffer((PVAsyncInformationalEvent &) aEvent);
- OutputInfo("PVT_INDICATION_CLOSING_TRACK dir=%d, id %u\n", dir, id);
+ OutputInfo(PVLOGMSG_INFO, "PVT_INDICATION_CLOSING_TRACK dir=%d, id %u\n", dir, id);
if (dir == INCOMING)
{
if (iAudioSink->IsChannelId(id))
TPVDirection dir = (TPVDirection)((PVAsyncInformationalEvent&)aEvent).GetLocalBuffer()[0];
TPVChannelId id = GetIdFromLocalBuffer((PVAsyncInformationalEvent &) aEvent);
- OutputInfo("PVT_INDICATION_CLOSE_TRACK dir=%d, id=%u", dir, id);
+ OutputInfo(PVLOGMSG_STACK_TRACE, "PV2WaySourceAndSinksBase::HandleCloseTrack() - PVT_INDICATION_CLOSE_TRACK dir=%d, id=%u", dir, id);
if (dir == INCOMING)
{
if (iVideoSink->IsChannelId(id))
{
- OutputInfo("\nIncoming video track closed\n");
+ OutputInfo(PVLOGMSG_INFO, "\nIncoming video track closed\n");
iVideoSink->HandleCloseTrack();
}
else if (iAudioSink->IsChannelId(id))
{
- OutputInfo("\nIncoming audio track closed\n");
+ OutputInfo(PVLOGMSG_INFO, "\nIncoming audio track closed\n");
iAudioSink->HandleCloseTrack();
}
}
{
if (iVideoSource->IsChannelId(id))
{
- OutputInfo("\nOutgoing video track closed\n");
+ OutputInfo(PVLOGMSG_INFO, "\nOutgoing video track closed\n");
iVideoSource->HandleCloseTrack();
}
else if (iAudioSource->IsChannelId(id))
{
- OutputInfo("\nOutgoing audio track closed\n");
+ OutputInfo(PVLOGMSG_INFO, "\nOutgoing audio track closed\n");
iAudioSource->HandleCloseTrack();
}
}
OSCL_EXPORT_REF void PV2WaySourceAndSinksBase::PrintFormatTypes()
{
- OutputInfo("\nAudio Sink Format Types: ");
+ OutputInfo(PVLOGMSG_INFO, "\nAudio Sink Format Types: ");
iAudioSink->PrintFormatTypes();
- OutputInfo("\nAudio Source Format Types: ");
+ OutputInfo(PVLOGMSG_INFO, "\nAudio Source Format Types: ");
iAudioSource->PrintFormatTypes();
- OutputInfo("\nVideo Sink Format Types: ");
+ OutputInfo(PVLOGMSG_INFO, "\nVideo Sink Format Types: ");
iVideoSink->PrintFormatTypes();
- OutputInfo("\nVideo Source Format Types: ");
+ OutputInfo(PVLOGMSG_INFO, "\nVideo Source Format Types: ");
iVideoSource->PrintFormatTypes();
}
PV2WayMediaType aMediaType, PVMFFormatType& aFormat)
{
PVMFFormatType& form = GetMIO(aDir, aMediaType)->GetSelectedFormat();
- OutputInfo(" Expected: %s and Found: %s match? %d --------\n",
+ OutputInfo(PVLOGMSG_INFO, " Expected: %s and Found: %s match? %d --------\n",
aFormat.getMIMEStrPtr(), form.getMIMEStrPtr(), (form == aFormat));
return (form == aFormat) ? true : false;
}
mio->AddCodec(aSettings);
return 0;
}
- OutputInfo("PV2WaySourceAndSinksBase::AddPreferredCodec: Error! No MIO of given dir, type");
+ OutputInfo(PVLOGMSG_ERR, "PV2WaySourceAndSinksBase::AddPreferredCodec: Error! No MIO of given dir, type");
return -1;
}
mio->AddCodec(aFileSettings);
return 0;
}
- OutputInfo("PV2WaySourceAndSinksBase::AddPreferredCodec: Error! No MIO of given dir, type");
+ OutputInfo(PVLOGMSG_ERR, "PV2WaySourceAndSinksBase::AddPreferredCodec: Error! No MIO of given dir, type");
return -1;
}
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PV2WAY_ENGINE_SDKINFO_LABEL "983785"
+#define PV2WAY_ENGINE_SDKINFO_LABEL "983931"
#define PV2WAY_ENGINE_SDKINFO_DATE 0x20090925
#endif //PV_2WAY_SDKINFO_H_INCLUDED
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PVAUTHOR_ENGINE_SDKINFO_LABEL "983785"
+#define PVAUTHOR_ENGINE_SDKINFO_LABEL "983931"
#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20090925
#endif //PV_AUTHOR_SDKINFO_H_INCLUDED
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PVPLAYER_ENGINE_SDKINFO_LABEL "983785"
+#define PVPLAYER_ENGINE_SDKINFO_LABEL "983931"
#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20090925
#endif //PV_PLAYER_SDKINFO_H_INCLUDED