VirtualBox

Ignore:
Timestamp:
Nov 9, 2018 11:22:09 AM (6 years ago)
Author:
vboxsync
Message:

Recording: More renaming for Main internals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r75352 r75354  
    56165616    if (pDisplay)
    56175617    {
    5618         const bool fIsEnabled =    Recording.mpRecordCtx
    5619                                 && Recording.mpRecordCtx->IsStarted();
     5618        const bool fIsEnabled =    Recording.mpCtx
     5619                                && Recording.mpCtx->IsStarted();
    56205620
    56215621        if (RT_BOOL(fEnable) != fIsEnabled)
     
    56325632# ifdef VBOX_WITH_AUDIO_RECORDING
    56335633                    /* Attach the video recording audio driver if required. */
    5634                     if (   Recording.mpRecordCtx->IsFeatureEnabled(RecordFeature_Audio)
     5634                    if (   Recording.mpCtx->IsFeatureEnabled(RecordFeature_Audio)
    56355635                        && Recording.mAudioRec)
    56365636                    {
    5637                         vrc = Recording.mAudioRec->applyConfiguration(Recording.mpRecordCtx->GetConfig());
     5637                        vrc = Recording.mAudioRec->applyConfiguration(Recording.mpCtx->GetConfig());
    56385638                        if (RT_SUCCESS(vrc))
    56395639                            vrc = Recording.mAudioRec->doAttachDriverViaEmt(mpUVM, pAutoLock);
     
    56415641# endif
    56425642                    if (   RT_SUCCESS(vrc)
    5643                         && Recording.mpRecordCtx->IsReady()) /* Any video recording (audio and/or video) feature enabled? */
     5643                        && Recording.mpCtx->IsReady()) /* Any video recording (audio and/or video) feature enabled? */
    56445644                    {
    56455645                        vrc = i_recordingStart();
     
    68786878HRESULT Console::i_recordingSendAudio(const void *pvData, size_t cbData, uint64_t uTimestampMs)
    68796879{
    6880     if (!Recording.mpRecordCtx)
     6880    if (!Recording.mpCtx)
    68816881        return S_OK;
    68826882
    6883     if (   Recording.mpRecordCtx->IsStarted()
    6884         && Recording.mpRecordCtx->IsFeatureEnabled(RecordFeature_Audio))
    6885     {
    6886         return Recording.mpRecordCtx->SendAudioFrame(pvData, cbData, uTimestampMs);
     6883    if (   Recording.mpCtx->IsStarted()
     6884        && Recording.mpCtx->IsFeatureEnabled(RecordFeature_Audio))
     6885    {
     6886        return Recording.mpCtx->SendAudioFrame(pvData, cbData, uTimestampMs);
    68876887    }
    68886888
     
    69076907    Settings.fEnabled = RT_BOOL(fTemp);
    69086908
    6909     SafeIfaceArray<IRecordScreenSettings> paCaptureScreens;
    6910     hrc = pRecordSettings->COMGETTER(Screens)(ComSafeArrayAsOutParam(paCaptureScreens));
     6909    SafeIfaceArray<IRecordScreenSettings> paRecordingScreens;
     6910    hrc = pRecordSettings->COMGETTER(Screens)(ComSafeArrayAsOutParam(paRecordingScreens));
    69116911    AssertComRCReturn(hrc, VERR_INVALID_PARAMETER);
    69126912
    6913     for (unsigned long i = 0; i < (unsigned long)paCaptureScreens.size(); ++i)
     6913    for (unsigned long i = 0; i < (unsigned long)paRecordingScreens.size(); ++i)
    69146914    {
    69156915        settings::RecordScreenSettings RecordScreenSettings;
    6916         ComPtr<IRecordScreenSettings> pRecordScreenSettings = paCaptureScreens[i];
     6916        ComPtr<IRecordScreenSettings> pRecordScreenSettings = paRecordingScreens[i];
    69176917
    69186918        hrc = pRecordScreenSettings->COMGETTER(Enabled)(&fTemp);
     
    69426942    }
    69436943
    6944     Assert(Settings.mapScreens.size() == paCaptureScreens.size());
     6944    Assert(Settings.mapScreens.size() == paRecordingScreens.size());
    69456945
    69466946    return VINF_SUCCESS;
     
    69546954int Console::i_recordingCreate(void)
    69556955{
    6956     AssertReturn(Recording.mpRecordCtx == NULL, VERR_WRONG_ORDER);
     6956    AssertReturn(Recording.mpCtx == NULL, VERR_WRONG_ORDER);
    69576957
    69586958    int rc = VINF_SUCCESS;
     
    69606960    try
    69616961    {
    6962         Recording.mpRecordCtx = new CaptureContext(this);
     6962        Recording.mpCtx = new RecordingContext(this);
    69636963    }
    69646964    catch (std::bad_alloc &)
     
    69756975    if (RT_SUCCESS(rc))
    69766976    {
    6977         AssertPtr(Recording.mpRecordCtx);
    6978         rc = Recording.mpRecordCtx->Create(Settings);
     6977        AssertPtr(Recording.mpCtx);
     6978        rc = Recording.mpCtx->Create(Settings);
    69796979    }
    69806980
     
    69886988void Console::i_recordingDestroy(void)
    69896989{
    6990     if (Recording.mpRecordCtx)
    6991     {
    6992         delete Recording.mpRecordCtx;
    6993         Recording.mpRecordCtx = NULL;
     6990    if (Recording.mpCtx)
     6991    {
     6992        delete Recording.mpCtx;
     6993        Recording.mpCtx = NULL;
    69946994    }
    69956995
     
    70047004int Console::i_recordingStart(void)
    70057005{
    7006     AssertPtrReturn(Recording.mpRecordCtx, VERR_WRONG_ORDER);
    7007 
    7008     if (Recording.mpRecordCtx->IsStarted())
     7006    AssertPtrReturn(Recording.mpCtx, VERR_WRONG_ORDER);
     7007
     7008    if (Recording.mpCtx->IsStarted())
    70097009        return VINF_SUCCESS;
    70107010
    70117011    LogRel(("Recording: Starting ...\n"));
    70127012
    7013     int rc = Recording.mpRecordCtx->Start();
     7013    int rc = Recording.mpCtx->Start();
    70147014    if (RT_SUCCESS(rc))
    70157015    {
    7016         for (unsigned uScreen = 0; uScreen < Recording.mpRecordCtx->GetStreamCount(); uScreen++)
     7016        for (unsigned uScreen = 0; uScreen < Recording.mpCtx->GetStreamCount(); uScreen++)
    70177017            mDisplay->i_recordingScreenChanged(uScreen);
    70187018    }
     
    70307030int Console::i_recordingStop(void)
    70317031{
    7032     if (   !Recording.mpRecordCtx
    7033         || !Recording.mpRecordCtx->IsStarted())
     7032    if (   !Recording.mpCtx
     7033        || !Recording.mpCtx->IsStarted())
    70347034        return VINF_SUCCESS;
    70357035
    70367036    LogRel(("Recording: Stopping ...\n"));
    70377037
    7038     int rc = Recording.mpRecordCtx->Stop();
     7038    int rc = Recording.mpCtx->Stop();
    70397039    if (RT_SUCCESS(rc))
    70407040    {
    7041         const size_t cStreams = Recording.mpRecordCtx->GetStreamCount();
     7041        const size_t cStreams = Recording.mpCtx->GetStreamCount();
    70427042        for (unsigned uScreen = 0; uScreen < cStreams; ++uScreen)
    70437043            mDisplay->i_recordingScreenChanged(uScreen);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette