diff -r 2d690156cf8f -r 315810614048 videoplayback/videohelix/tsrc/ut_videohelixtest/src/videohelixtestbody.cpp --- a/videoplayback/videohelix/tsrc/ut_videohelixtest/src/videohelixtestbody.cpp Thu Jul 15 18:41:27 2010 +0300 +++ b/videoplayback/videohelix/tsrc/ut_videohelixtest/src/videohelixtestbody.cpp Thu Aug 19 09:57:17 2010 +0300 @@ -15,7 +15,7 @@ * */ -// Version : %version: e003sa33#24.1.1 % +// Version : %version: 26 % // [INCLUDE FILES] - do not remove @@ -120,9 +120,8 @@ ENTRY ("InitializeWithPositionL", CVHPPTestClass::InitializeWithPositionL), ENTRY ("InitializeLinkWithPositionL", CVHPPTestClass::InitializeLinkWithPositionL), ENTRY ("InitializeHandleWithPositionL", CVHPPTestClass::InitializeHandleWithPositionL), - ENTRY ( "InitializeStreamingWithSdpFileHandleL", - CVHPPTestClass::InitializeStreamingWithSdpFileHandleL ), - ENTRY ( "RetrieveFileNameAndModeL", CVHPPTestClass::RetrieveFileNameAndModeL ) + ENTRY ( "InitializeStreamingWithSdpFileHandleL", CVHPPTestClass::InitializeStreamingWithSdpFileHandleL ), + ENTRY ( "RetrieveFileNameAndModeL", CVHPPTestClass::RetrieveFileNameAndModeL ) // // ADD NEW ENTRIES HERE @@ -290,7 +289,7 @@ TInt duration; TInt volumeSteps; - + TInt err = aItem.GetNextInt( duration ); if ( err == KErrNone ) @@ -306,32 +305,32 @@ AddExpectedEvent( event ); - // + // // read number of volume steps // err = aItem.GetNextInt( volumeSteps ); - + if ( err == KErrNone ) - { + { // // set volume steps // SetVolumeSteps( volumeSteps ); - - TBuf<120> fullPath; + + TBuf<120> fullPath; err = ReadFileInitializationParameters( aItem, fullPath ); - + if ( err == KErrNone ) { PreparePluginL(); - + // // Initalize the Plugin with a file name // MPX_DEBUG(_L("Initialize the Plugin: filename = %S"), &fullPath); iLog->Log(_L("Initialize the Plugin: filename = %S"), &fullPath); - + iPlaybackPlugin->InitialiseL( fullPath ); } } @@ -368,40 +367,40 @@ AddExpectedEvent( event ); - // + // // read number of volume steps // err = aItem.GetNextInt( volumeSteps ); - + if ( err == KErrNone ) - { + { // // set volume steps // SetVolumeSteps( volumeSteps ); - + TPtrC link; - + // // Read in the link from the config file // TInt err = aItem.GetNextString( link ); - + if ( err == KErrNone ) { TInt err = ReadInitializationErrors( aItem ); - + if ( err == KErrNone ) { PreparePluginL(); - + // // Extract the streaming link from the ram file and // Initalize the Plugin with the link and an access point // MPX_DEBUG(_L("Initialize the Plugin: link = %S"), &link); iLog->Log(_L("Initialize the Plugin: link = %S"), &link); - + iPlaybackPlugin->InitStreamingL( link, KNullDesC8, 11 ); } } @@ -463,57 +462,57 @@ TInt duration; TInt volumeSteps; TInt fileHandle32; - + TInt err = aItem.GetNextInt( fileHandle32 ); - + if ( err == KErrNone ) - { - + { + #ifndef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API // // set RFile as default if the 64-bit flag is not defined // fileHandle32 = ETrue; #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API - + err = aItem.GetNextInt( duration ); - + if ( err == KErrNone ) { // // We will always get an Init Complete message out // TCallbackEvent* event = new TCallbackEvent; - + event->iEvent = EPInitialised; event->iData = duration; event->iError = KErrNone; - + AddExpectedEvent( event ); - - // + + // // read number of volume steps // err = aItem.GetNextInt( volumeSteps ); - + if ( err == KErrNone ) - { + { // // set volume steps // SetVolumeSteps( volumeSteps ); - + TBuf<120> fullPath; - + err = ReadFileInitializationParameters( aItem, fullPath ); - + if ( err == KErrNone ) { PreparePluginL(); - + RFs fs; TInt error = fs.Connect(); - + // // Open a file handle to the clip // @@ -533,18 +532,18 @@ file64.Close(); } #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API - + // // Initalize the Plugin with a file name // MPX_DEBUG(_L("Initialize the Plugin with File Handle: filename = %S"), &fullPath); iLog->Log(_L("Initialize the Plugin with File Handle: filename = %S"), &fullPath); - + fs.Close(); } - } - } - } + } + } + } return err; } @@ -891,14 +890,14 @@ event->iError = KErrNone; AddExpectedEvent( event ); } - else - { - event->iEvent = EPSetComplete; - event->iData = property; - event->iError = KErrNone; - AddExpectedEvent( event ); - } - + else + { + event->iEvent = EPSetComplete; + event->iData = property; + event->iError = KErrNone; + AddExpectedEvent( event ); + } + } TRAP( err, iPlaybackPlugin->SetL( (TMPXPlaybackProperty)property, value ) ); @@ -1147,9 +1146,9 @@ iLog->Log(_L("CVHPPTestClass::ConnectToDownloadL()")); TInt err = KErrNone; - -#ifdef USE_S60_DOWNLOAD_MANAGER - + +#ifdef USE_S60_DOWNLOAD_MANAGER + iDlMgrTester = CDlMgrTestClass::NewL(); iDlMgrTester->AddStifObserver( this ); @@ -1196,17 +1195,17 @@ CleanupStack::PopAndDestroy( cmd ); } } - -#else // USE_S60_DOWNLOAD_MANAGER - - // suppress build warning - MPX_DEBUG(_L("CVHPPTestClass::ConnectToDownloadL() : parsing type = %d"), aItem.ParsingType()); - - // Signal TestScripter to continue from waittestclass + +#else // USE_S60_DOWNLOAD_MANAGER + + // suppress build warning + MPX_DEBUG(_L("CVHPPTestClass::ConnectToDownloadL() : parsing type = %d"), aItem.ParsingType()); + + // Signal TestScripter to continue from waittestclass Signal(); - + #endif // USE_S60_DOWNLOAD_MANAGER - + return err; } @@ -1220,7 +1219,7 @@ MPX_ENTER_EXIT(_L("CVHPPTestClass::SendPdlCustomCommandL"), _L("aCustomCmd = %d"), aCustomCmd ); -#ifdef USE_S60_DOWNLOAD_MANAGER +#ifdef USE_S60_DOWNLOAD_MANAGER CMPXCommand* cmd = CMPXCommand::NewL(); CleanupStack::PushL( cmd ); @@ -1232,12 +1231,12 @@ iPlaybackPlugin->CommandL( *cmd ); CleanupStack::PopAndDestroy( cmd ); - -#else // USE_S60_DOWNLOAD_MANAGER - - // Signal TestScripter to continue from waittestclass + +#else // USE_S60_DOWNLOAD_MANAGER + + // Signal TestScripter to continue from waittestclass Signal(); - + #endif // USE_S60_DOWNLOAD_MANAGER } @@ -1252,8 +1251,8 @@ MPX_ENTER_EXIT(_L("CVHPPTestClass::PauseDownloadL()")); iLog->Log(_L("CVHPPTestClass::PauseDownloadL()")); -#ifdef USE_S60_DOWNLOAD_MANAGER - +#ifdef USE_S60_DOWNLOAD_MANAGER + TCallbackEvent* event = new TCallbackEvent; event->iEvent = EPDownloadStateChanged; @@ -1263,14 +1262,14 @@ AddExpectedEvent( event ); iDlMgrTester->PauseDownload(); - -#else // USE_S60_DOWNLOAD_MANAGER - - // Signal TestScripter to continue from waittestclass + +#else // USE_S60_DOWNLOAD_MANAGER + + // Signal TestScripter to continue from waittestclass Signal(); - -#endif // USE_S60_DOWNLOAD_MANAGER - + +#endif // USE_S60_DOWNLOAD_MANAGER + return KErrNone; } @@ -1285,9 +1284,9 @@ iLog->Log(_L("CVHPPTestClass::ResumeDownloadL()")); TInt err = KErrNone; - -#ifdef USE_S60_DOWNLOAD_MANAGER - + +#ifdef USE_S60_DOWNLOAD_MANAGER + TInt dlSize; err = aItem.GetNextInt( dlSize ); @@ -1314,17 +1313,17 @@ iDlMgrTester->ResumeDownload(); } - -#else // USE_S60_DOWNLOAD_MANAGER - - // suppress build warning - MPX_DEBUG(_L("CVHPPTestClass::ResumeDownloadL() : parsing type = %d"), aItem.ParsingType()); - - // Signal TestScripter to continue from waittestclass + +#else // USE_S60_DOWNLOAD_MANAGER + + // suppress build warning + MPX_DEBUG(_L("CVHPPTestClass::ResumeDownloadL() : parsing type = %d"), aItem.ParsingType()); + + // Signal TestScripter to continue from waittestclass Signal(); - -#endif // USE_S60_DOWNLOAD_MANAGER - + +#endif // USE_S60_DOWNLOAD_MANAGER + return err; } @@ -1338,8 +1337,8 @@ MPX_ENTER_EXIT(_L("CVHPPTestClass::CancelDownloadL()")); iLog->Log(_L("CVHPPTestClass::CancelDownloadL()")); -#ifdef USE_S60_DOWNLOAD_MANAGER - +#ifdef USE_S60_DOWNLOAD_MANAGER + TCallbackEvent* event = new TCallbackEvent; event->iEvent = EPDownloadStateChanged; @@ -1350,13 +1349,13 @@ iDlMgrTester->CancelDownload(); -#else // USE_S60_DOWNLOAD_MANAGER - - // Signal TestScripter to continue from waittestclass +#else // USE_S60_DOWNLOAD_MANAGER + + // Signal TestScripter to continue from waittestclass Signal(); - -#endif // USE_S60_DOWNLOAD_MANAGER - + +#endif // USE_S60_DOWNLOAD_MANAGER + return KErrNone; } @@ -1371,9 +1370,9 @@ iLog->Log(_L("CVHPPTestClass::RetrievePdlStatusL()")); TInt err = KErrNone; - -#ifdef USE_S60_DOWNLOAD_MANAGER - + +#ifdef USE_S60_DOWNLOAD_MANAGER + TInt pdlState; TInt expectedPdlState; TInt downloadedBytes; @@ -1432,16 +1431,16 @@ CleanupStack::PopAndDestroy( cmd ); } -#else // USE_S60_DOWNLOAD_MANAGER - - // suppress build warning - MPX_DEBUG(_L("CVHPPTestClass::RetrievePdlStatusL() : parsing type = %d"), aItem.ParsingType()); - - // Signal TestScripter to continue from waittestclass +#else // USE_S60_DOWNLOAD_MANAGER + + // suppress build warning + MPX_DEBUG(_L("CVHPPTestClass::RetrievePdlStatusL() : parsing type = %d"), aItem.ParsingType()); + + // Signal TestScripter to continue from waittestclass Signal(); - -#endif // USE_S60_DOWNLOAD_MANAGER - + +#endif // USE_S60_DOWNLOAD_MANAGER + return err; } @@ -1623,7 +1622,7 @@ CVHPPTestClass::ProcessEvent( TCallbackEvent* aCallback ) { MPX_ENTER_EXIT(_L("CVHPPTestClass::ProcessEvent")); - + if ( iExpectedCallbackArray->Count() > 0 ) { TCallbackEvent* expectedCallback = (*iExpectedCallbackArray)[0]; @@ -2027,7 +2026,14 @@ event->iError = KErrNone; AddExpectedEvent( event ); - + + event = new TCallbackEvent; + event->iEvent = EPPaused; + event->iData = 0; + event->iError = KErrNone; + + AddExpectedEvent( event ); + iAccObserver->UpdateTvOutStatusL( EFalse ); return KErrNone; @@ -2121,69 +2127,69 @@ return err; } -// ----------------------------------------------------------------------------- -// CVHPPTestClass::SetVolumeSteps -// ----------------------------------------------------------------------------- -// -TInt -CVHPPTestClass::SetVolumeSteps( TInt aVolumeSteps ) -{ - MPX_ENTER_EXIT(_L("CVHPPTestClass::SetVolumeSteps()")); - iLog->Log(_L("CVHPPTestClass::SetVolumeSteps()")); - +// ----------------------------------------------------------------------------- +// CVHPPTestClass::SetVolumeSteps +// ----------------------------------------------------------------------------- +// +TInt +CVHPPTestClass::SetVolumeSteps( TInt aVolumeSteps ) +{ + MPX_ENTER_EXIT(_L("CVHPPTestClass::SetVolumeSteps()")); + iLog->Log(_L("CVHPPTestClass::SetVolumeSteps()")); + iPlayerUtility->SetVolumeSteps( aVolumeSteps ); - - return KErrNone; -} - -// ----------------------------------------------------------------------------- -// CVHPPTestClass::HandleVolumeL -// ----------------------------------------------------------------------------- -// -TInt -CVHPPTestClass::HandleVolumeL( CStifItemParser& aItem ) -{ - MPX_ENTER_EXIT(_L("CVHPPTestClass::HandleVolumeL()")); - iLog->Log(_L("CVHPPTestClass::HandleVolumeL()")); - - TInt command; - TInt value; - + + return KErrNone; +} + +// ----------------------------------------------------------------------------- +// CVHPPTestClass::HandleVolumeL +// ----------------------------------------------------------------------------- +// +TInt +CVHPPTestClass::HandleVolumeL( CStifItemParser& aItem ) +{ + MPX_ENTER_EXIT(_L("CVHPPTestClass::HandleVolumeL()")); + iLog->Log(_L("CVHPPTestClass::HandleVolumeL()")); + + TInt command; + TInt value; + TInt err = aItem.GetNextInt( command ); if ( err == KErrNone ) { err = aItem.GetNextInt( value ); - if ( err == KErrNone ) - { - // - // assign callback event values - // - TCallbackEvent* event = new TCallbackEvent; - event->iEvent = EPVolumeChanged; - event->iData = value; - event->iError = KErrNone; - - // - // save expected result to be compared later - // - AddExpectedEvent( event ); - + if ( err == KErrNone ) + { + // + // assign callback event values + // + TCallbackEvent* event = new TCallbackEvent; + event->iEvent = EPVolumeChanged; + event->iData = value; + event->iError = KErrNone; + + // + // save expected result to be compared later + // + AddExpectedEvent( event ); + // // send command to playback plugin // - CreateVideoPlaybackCommandL( aItem, (TMPXVideoPlaybackCommand)command ); - } + CreateVideoPlaybackCommandL( aItem, (TMPXVideoPlaybackCommand)command ); + } } - + if ( err == KErrNone ) { MPX_DEBUG(_L("CVHPPTestClass::HandleVolumeL() leaves with proper error")); } - - return err; -} + + return err; +} TInt @@ -2195,7 +2201,7 @@ TInt duration; TInt volumeSteps; TInt position; - + TInt err = aItem.GetNextInt( duration ); if ( err == KErrNone ) @@ -2211,36 +2217,36 @@ AddExpectedEvent( event ); - // + // // read number of volume steps // err = aItem.GetNextInt( volumeSteps ); - + if ( err == KErrNone ) - { + { // // set volume steps // SetVolumeSteps( volumeSteps ); - + err = aItem.GetNextInt( position ); - + if (err == KErrNone ) { - TBuf<120> fullPath; + TBuf<120> fullPath; err = ReadFileInitializationParameters( aItem, fullPath ); - + if ( err == KErrNone ) { PreparePluginL(); - + // // Initalize the Plugin with a file name // MPX_DEBUG(_L("Initialize the Plugin: filename = %S, position = %d"), &fullPath, position); iLog->Log(_L("Initialize the Plugin: filename = %S, position = %d"), &fullPath, position); - + iPlaybackPlugin->InitialiseWithPositionL( fullPath, position ); } @@ -2261,7 +2267,7 @@ TInt duration; TInt volumeSteps; TInt position; - + TInt err = aItem.GetNextInt( duration ); if ( err == KErrNone ) @@ -2277,44 +2283,44 @@ AddExpectedEvent( event ); - // + // // read number of volume steps // err = aItem.GetNextInt( volumeSteps ); - + if ( err == KErrNone ) - { + { // // set volume steps // SetVolumeSteps( volumeSteps ); - + err = aItem.GetNextInt( position ); - + if ( err == KErrNone ) { TPtrC link; - + // // Read in the link from the config file // TInt err = aItem.GetNextString( link ); - + if ( err == KErrNone ) { TInt err = ReadInitializationErrors( aItem ); - + if ( err == KErrNone ) { PreparePluginL(); - + // // Extract the streaming link from the ram file and // Initalize the Plugin with the link and an access point // MPX_DEBUG(_L("Initialize the Plugin: link = %S, position = %d"), &link, position); iLog->Log(_L("Initialize the Plugin: link = %S, position = %d"), &link, position); - + iPlaybackPlugin->InitStreamingL( link, KNullDesC8, 11, position ); } } @@ -2336,41 +2342,41 @@ TInt volumeSteps; TInt position; TInt fileHandle32; - + TInt err = aItem.GetNextInt( fileHandle32 ); - + if ( err == KErrNone ) - { - + { + #ifndef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API // // set RFile as default if the 64-bit flag is not defined // fileHandle32 = ETrue; #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API - + err = aItem.GetNextInt( duration ); - + if ( err == KErrNone ) { // // We will always get an Init Complete message out // TCallbackEvent* event = new TCallbackEvent; - + event->iEvent = EPInitialised; event->iData = duration; event->iError = KErrNone; - + AddExpectedEvent( event ); - - // + + // // read number of volume steps // err = aItem.GetNextInt( volumeSteps ); - + if ( err == KErrNone ) - { + { // // set volume steps // @@ -2381,16 +2387,16 @@ if (err == KErrNone ) { TBuf<120> fullPath; - + err = ReadFileInitializationParameters( aItem, fullPath ); - + if ( err == KErrNone ) { PreparePluginL(); - + RFs fs; TInt error = fs.Connect(); - + // // Open a file handle to the clip // @@ -2410,20 +2416,20 @@ file64.Close(); } #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API - + // // Initalize the Plugin with a file name // MPX_DEBUG(_L("Initialize the Plugin with File Handle: filename = %S, position = %d"), &fullPath, position); iLog->Log(_L("Initialize the Plugin with File Handle: filename = %S, position = %d"), &fullPath, position); - + fs.Close(); } - } - - } - } - } + } + + } + } + } return err; } @@ -2437,97 +2443,97 @@ TInt duration; TInt volumeSteps; TInt fileHandle32; - + TInt err = aItem.GetNextInt( fileHandle32 ); - + if ( err == KErrNone ) - { - + { + #ifndef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API // // set RFile as default if the 64-bit flag is not defined // fileHandle32 = ETrue; #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API - + err = aItem.GetNextInt( duration ); - + if ( err == KErrNone ) { // // We will always get an Init Complete message out // TCallbackEvent* event = new TCallbackEvent; - + event->iEvent = EPInitialised; event->iData = duration; event->iError = KErrNone; - + AddExpectedEvent( event ); - - // + + // // read number of volume steps // err = aItem.GetNextInt( volumeSteps ); - + if ( err == KErrNone ) - { + { // // set volume steps // SetVolumeSteps( volumeSteps ); - + TBuf<120> fullPath; err = ReadFileInitializationParameters( aItem, fullPath ); if ( err == KErrNone ) { - PreparePluginL(); - - MPX_DEBUG( _L("Initialize the Plugin: link = %S"), &fullPath ); - iLog->Log( _L("Initialize the Plugin: link = %S"), &fullPath ); - - // - // Extract the streaming link from the ram file and - // Initalize the Plugin with the file handle and an access point - // - RFs fs; - TInt error = fs.Connect(); - - if ( fileHandle32 ) - { - RFile file; - error = file.Open( fs, fullPath, EFileRead | EFileShareAny ); - - MPX_DEBUG( _L("Initialize the Plugin: file open error = %d"), - error ); - - User::LeaveIfError( error ); - - iPlaybackPlugin->InitStreamingL( file, 11 ); - file.Close(); - } + PreparePluginL(); + + MPX_DEBUG( _L("Initialize the Plugin: link = %S"), &fullPath ); + iLog->Log( _L("Initialize the Plugin: link = %S"), &fullPath ); + + // + // Extract the streaming link from the ram file and + // Initalize the Plugin with the file handle and an access point + // + RFs fs; + TInt error = fs.Connect(); + + if ( fileHandle32 ) + { + RFile file; + error = file.Open( fs, fullPath, EFileRead | EFileShareAny ); + + MPX_DEBUG( _L("Initialize the Plugin: file open error = %d"), + error ); + + User::LeaveIfError( error ); + + iPlaybackPlugin->InitStreamingL( file, 11 ); + file.Close(); + } #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API - else - { - RFile64 file64; - error = file64.Open( fs, fullPath, EFileRead | EFileShareAny ); - - MPX_DEBUG( _L("Initialize the Plugin: file open error = %d"), - error ); - - User::LeaveIfError( error ); - - iPlaybackPlugin->InitStreaming64L( file64, 11 ); - file64.Close(); - } + else + { + RFile64 file64; + error = file64.Open( fs, fullPath, EFileRead | EFileShareAny ); + + MPX_DEBUG( _L("Initialize the Plugin: file open error = %d"), + error ); + + User::LeaveIfError( error ); + + iPlaybackPlugin->InitStreaming64L( file64, 11 ); + file64.Close(); + } #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API - - fs.Close(); + + fs.Close(); } - } - } - } + } + } + } return err; } @@ -2537,10 +2543,10 @@ MPX_ENTER_EXIT( _L("CVHPPTestClass::RetrieveFileNameAndModeL()") ); iLog->Log( _L("CVHPPTestClass::RetrieveFileNameAndModeL()") ); - TBuf<120> fullPath; - TPtrC fileName; - TInt err; - + TBuf<120> fullPath; + TPtrC fileName; + TInt err; + err = aItem.GetNextString( fileName ); if ( err == KErrNone ) @@ -2550,38 +2556,38 @@ // fullPath.Append( KVideoTestPath ); fullPath.Append( fileName ); - + TInt mode; err = aItem.GetNextInt( mode); - + if ( err == KErrNone ) { - CMPXCommand* cmd = CMPXCommand::NewL(); - CleanupStack::PushL( cmd ); - - cmd->SetTObjectValueL( KMPXCommandGeneralDoSync, ETrue ); - cmd->SetTObjectValueL( KMPXCommandGeneralId, - KMPXMediaIdVideoPlayback ); - cmd->SetTObjectValueL( KMPXMediaVideoPlaybackCommand, EPbCmdInitView ); - - iPlaybackPlugin->CommandL( *cmd ); - - TPtrC clipName( cmd->ValueText( KMPXMediaVideoPlaybackFileName ) ); - TMPXVideoMode playbackMode = (TMPXVideoMode) cmd->ValueTObjectL( KMPXMediaVideoMode ); - - MPX_DEBUG( _L(" Expected Data: filename = %S, playbackmode= %d" ), - &fullPath, mode ); - - MPX_DEBUG( _L(" Retrieved Data: filename = %S, playbackmode= %d"), - &clipName, playbackMode ); - - if ( fullPath.Compare( clipName) != 0 || mode != playbackMode ) - { - err = KErrGeneral; - MPX_DEBUG( _L(" err = %d"), err ); - } - - CleanupStack::PopAndDestroy( cmd ); + CMPXCommand* cmd = CMPXCommand::NewL(); + CleanupStack::PushL( cmd ); + + cmd->SetTObjectValueL( KMPXCommandGeneralDoSync, ETrue ); + cmd->SetTObjectValueL( KMPXCommandGeneralId, + KMPXMediaIdVideoPlayback ); + cmd->SetTObjectValueL( KMPXMediaVideoPlaybackCommand, EPbCmdInitView ); + + iPlaybackPlugin->CommandL( *cmd ); + + TPtrC clipName( cmd->ValueText( KMPXMediaVideoPlaybackFileName ) ); + TMPXVideoMode playbackMode = (TMPXVideoMode) cmd->ValueTObjectL( KMPXMediaVideoMode ); + + MPX_DEBUG( _L(" Expected Data: filename = %S, playbackmode= %d" ), + &fullPath, mode ); + + MPX_DEBUG( _L(" Retrieved Data: filename = %S, playbackmode= %d"), + &clipName, playbackMode ); + + if ( fullPath.Compare( clipName) != 0 || mode != playbackMode ) + { + err = KErrGeneral; + MPX_DEBUG( _L(" err = %d"), err ); + } + + CleanupStack::PopAndDestroy( cmd ); } }