VirtualBox

Ignore:
Timestamp:
Jul 14, 2022 10:33:14 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152289
Message:

Recording/Main: Simplified and got rid of some destruction races by not dynamically (re-)allocating the recording context. Added docs, a bit of renaming. bugref:9286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r95639 r95645  
    174174    AudioVideoRec *i_recordingGetAudioDrv(void) const { return mRecording.mAudioRec; }
    175175# endif
    176     RecordingContext *i_recordingGetContext(void) const { return mRecording.mpCtx; }
     176    RecordingContext *i_recordingGetContext(void) { return &mRecording.mCtx; }
    177177# ifdef VBOX_WITH_AUDIO_RECORDING
    178178    HRESULT i_recordingSendAudio(const void *pvData, size_t cbData, uint64_t uDurationMs);
     
    11561156    {
    11571157        Recording()
    1158             : mpCtx(NULL)
    11591158# ifdef VBOX_WITH_AUDIO_RECORDING
    1160             , mAudioRec(NULL)
     1159            : mAudioRec(NULL)
    11611160# endif
    11621161        { }
    11631162
    11641163        /** The recording context. */
    1165         RecordingContext     *mpCtx;
     1164        RecordingContext      mCtx;
    11661165# ifdef VBOX_WITH_AUDIO_RECORDING
    11671166        /** Pointer to capturing audio backend. */
Note: See TracChangeset for help on using the changeset viewer.

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