Changeset 75354 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
- Timestamp:
- Nov 9, 2018 11:22:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r75352 r75354 5616 5616 if (pDisplay) 5617 5617 { 5618 const bool fIsEnabled = Recording.mp RecordCtx5619 && Recording.mp RecordCtx->IsStarted();5618 const bool fIsEnabled = Recording.mpCtx 5619 && Recording.mpCtx->IsStarted(); 5620 5620 5621 5621 if (RT_BOOL(fEnable) != fIsEnabled) … … 5632 5632 # ifdef VBOX_WITH_AUDIO_RECORDING 5633 5633 /* Attach the video recording audio driver if required. */ 5634 if ( Recording.mp RecordCtx->IsFeatureEnabled(RecordFeature_Audio)5634 if ( Recording.mpCtx->IsFeatureEnabled(RecordFeature_Audio) 5635 5635 && Recording.mAudioRec) 5636 5636 { 5637 vrc = Recording.mAudioRec->applyConfiguration(Recording.mp RecordCtx->GetConfig());5637 vrc = Recording.mAudioRec->applyConfiguration(Recording.mpCtx->GetConfig()); 5638 5638 if (RT_SUCCESS(vrc)) 5639 5639 vrc = Recording.mAudioRec->doAttachDriverViaEmt(mpUVM, pAutoLock); … … 5641 5641 # endif 5642 5642 if ( RT_SUCCESS(vrc) 5643 && Recording.mp RecordCtx->IsReady()) /* Any video recording (audio and/or video) feature enabled? */5643 && Recording.mpCtx->IsReady()) /* Any video recording (audio and/or video) feature enabled? */ 5644 5644 { 5645 5645 vrc = i_recordingStart(); … … 6878 6878 HRESULT Console::i_recordingSendAudio(const void *pvData, size_t cbData, uint64_t uTimestampMs) 6879 6879 { 6880 if (!Recording.mp RecordCtx)6880 if (!Recording.mpCtx) 6881 6881 return S_OK; 6882 6882 6883 if ( Recording.mp RecordCtx->IsStarted()6884 && Recording.mp RecordCtx->IsFeatureEnabled(RecordFeature_Audio))6885 { 6886 return Recording.mp RecordCtx->SendAudioFrame(pvData, cbData, uTimestampMs);6883 if ( Recording.mpCtx->IsStarted() 6884 && Recording.mpCtx->IsFeatureEnabled(RecordFeature_Audio)) 6885 { 6886 return Recording.mpCtx->SendAudioFrame(pvData, cbData, uTimestampMs); 6887 6887 } 6888 6888 … … 6907 6907 Settings.fEnabled = RT_BOOL(fTemp); 6908 6908 6909 SafeIfaceArray<IRecordScreenSettings> pa CaptureScreens;6910 hrc = pRecordSettings->COMGETTER(Screens)(ComSafeArrayAsOutParam(pa CaptureScreens));6909 SafeIfaceArray<IRecordScreenSettings> paRecordingScreens; 6910 hrc = pRecordSettings->COMGETTER(Screens)(ComSafeArrayAsOutParam(paRecordingScreens)); 6911 6911 AssertComRCReturn(hrc, VERR_INVALID_PARAMETER); 6912 6912 6913 for (unsigned long i = 0; i < (unsigned long)pa CaptureScreens.size(); ++i)6913 for (unsigned long i = 0; i < (unsigned long)paRecordingScreens.size(); ++i) 6914 6914 { 6915 6915 settings::RecordScreenSettings RecordScreenSettings; 6916 ComPtr<IRecordScreenSettings> pRecordScreenSettings = pa CaptureScreens[i];6916 ComPtr<IRecordScreenSettings> pRecordScreenSettings = paRecordingScreens[i]; 6917 6917 6918 6918 hrc = pRecordScreenSettings->COMGETTER(Enabled)(&fTemp); … … 6942 6942 } 6943 6943 6944 Assert(Settings.mapScreens.size() == pa CaptureScreens.size());6944 Assert(Settings.mapScreens.size() == paRecordingScreens.size()); 6945 6945 6946 6946 return VINF_SUCCESS; … … 6954 6954 int Console::i_recordingCreate(void) 6955 6955 { 6956 AssertReturn(Recording.mp RecordCtx == NULL, VERR_WRONG_ORDER);6956 AssertReturn(Recording.mpCtx == NULL, VERR_WRONG_ORDER); 6957 6957 6958 6958 int rc = VINF_SUCCESS; … … 6960 6960 try 6961 6961 { 6962 Recording.mp RecordCtx = new CaptureContext(this);6962 Recording.mpCtx = new RecordingContext(this); 6963 6963 } 6964 6964 catch (std::bad_alloc &) … … 6975 6975 if (RT_SUCCESS(rc)) 6976 6976 { 6977 AssertPtr(Recording.mp RecordCtx);6978 rc = Recording.mp RecordCtx->Create(Settings);6977 AssertPtr(Recording.mpCtx); 6978 rc = Recording.mpCtx->Create(Settings); 6979 6979 } 6980 6980 … … 6988 6988 void Console::i_recordingDestroy(void) 6989 6989 { 6990 if (Recording.mp RecordCtx)6991 { 6992 delete Recording.mp RecordCtx;6993 Recording.mp RecordCtx = NULL;6990 if (Recording.mpCtx) 6991 { 6992 delete Recording.mpCtx; 6993 Recording.mpCtx = NULL; 6994 6994 } 6995 6995 … … 7004 7004 int Console::i_recordingStart(void) 7005 7005 { 7006 AssertPtrReturn(Recording.mp RecordCtx, VERR_WRONG_ORDER);7007 7008 if (Recording.mp RecordCtx->IsStarted())7006 AssertPtrReturn(Recording.mpCtx, VERR_WRONG_ORDER); 7007 7008 if (Recording.mpCtx->IsStarted()) 7009 7009 return VINF_SUCCESS; 7010 7010 7011 7011 LogRel(("Recording: Starting ...\n")); 7012 7012 7013 int rc = Recording.mp RecordCtx->Start();7013 int rc = Recording.mpCtx->Start(); 7014 7014 if (RT_SUCCESS(rc)) 7015 7015 { 7016 for (unsigned uScreen = 0; uScreen < Recording.mp RecordCtx->GetStreamCount(); uScreen++)7016 for (unsigned uScreen = 0; uScreen < Recording.mpCtx->GetStreamCount(); uScreen++) 7017 7017 mDisplay->i_recordingScreenChanged(uScreen); 7018 7018 } … … 7030 7030 int Console::i_recordingStop(void) 7031 7031 { 7032 if ( !Recording.mp RecordCtx7033 || !Recording.mp RecordCtx->IsStarted())7032 if ( !Recording.mpCtx 7033 || !Recording.mpCtx->IsStarted()) 7034 7034 return VINF_SUCCESS; 7035 7035 7036 7036 LogRel(("Recording: Stopping ...\n")); 7037 7037 7038 int rc = Recording.mp RecordCtx->Stop();7038 int rc = Recording.mpCtx->Stop(); 7039 7039 if (RT_SUCCESS(rc)) 7040 7040 { 7041 const size_t cStreams = Recording.mp RecordCtx->GetStreamCount();7041 const size_t cStreams = Recording.mpCtx->GetStreamCount(); 7042 7042 for (unsigned uScreen = 0; uScreen < cStreams; ++uScreen) 7043 7043 mDisplay->i_recordingScreenChanged(uScreen);
Note:
See TracChangeset
for help on using the changeset viewer.