{
PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_STACK_TRACE, (0, "PVPlayerEngine::DoSourceNodeGetDurationValue() In"));
+ if (iSourceNodeMetadataExtIF == NULL)
+ {
+ return PVMFErrNotSupported;
+ }
// Create a key list with just duration key
iSourceDurationKeyList.clear();
// Clear the value list
iSourceDurationValueList.clear();
- if (iSourceNodeMetadataExtIF == NULL)
- {
- return PVMFErrArgument;
- }
-
// Call GetNodeMetadataValues on the source node to retrieve duration
PVPlayerEngineContext* context = AllocateEngineContext(NULL, iSourceNode, NULL, aCmdId, aCmdContext, PVP_CMD_SourceNodeGetDurationValue);
(iCurrentBeginPosition.iPlayListPosUnit != PVPPBPOSUNIT_MILLISEC)))
{
PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_ERR, (0, "PVPlayerEngine::DoChangePlaybackPosition() Playback control IF on source node not available or invalid begin position"));
- return PVMFFailure;
+ return PVMFErrNotSupported;
}
PVMFCommandId cmdid = -1;
if (iSourceNodePBCtrlIF == NULL)
{
PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_ERR, (0, "PVPlayerEngine::DoSourceNodeSetDataSourcePositionDuringPlayback() No source playback control IF"));
- return PVMFFailure;
+ return PVMFErrNotSupported;
}
bool clockpausedhere = false;
switch (iPlaybackPositionMode)
&& iSourceNodePBCtrlIF == NULL)
{
PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_ERR, (0, "PVPlayerEngine::DoSetPlaybackRate() iSourceNodePBCtrlIF is NULL"));
- return PVMFFailure;
+ return PVMFErrNotSupported;
}
// To do any direction change, the source node must have the direction control IF.
&& iSourceNodeDirCtrlIF == NULL)
{
PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_ERR, (0, "PVPlayerEngine::DoSetPlaybackRate() iSourceNodeDirCtrlIF is NULL"));
- return PVMFFailure;
+ return PVMFErrNotSupported;
}
// Reset the paused-due-to-EOS flag if direction changes
if (!iSourceNodeDirCtrlIF)
{
PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_ERR, (0, "PVPlayerEngine::UpdateCurrentDirection() Direction control IF on source node not available "));
- status = PVMFFailure;
+ status = PVMFErrNotSupported;
PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_STACK_TRACE, (0, "PVPlayerEngine::UpdateCurrentDirection() Out"));
return status;
}
// Clear the Track selection List
iTrackSelectionList.clear();
- PVMFStatus cmdstatus = PVMFFailure;
+ PVMFStatus cmdstatus = PVMFErrNotSupported;
// Notify the TargetNPT to the source node before calling Prepare.
if (iSourceNodePBCtrlIF)
if (iSourceNodeDirCtrlIF == NULL)
{
PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_ERR, (0, "PVPlayerEngine::DoSourceNodeSetDataSourceDirection() No source direction control IF"));
- return PVMFFailure;
+ return PVMFErrNotSupported;
}
// Pause the playback clock