VirtualBox

Changeset 98011 in vbox


Ignore:
Timestamp:
Jan 6, 2023 2:40:38 PM (23 months ago)
Author:
vboxsync
Message:

Audio/Main: Added missing AutoCallers to the public IAudioAdapter methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/AudioAdapterImpl.cpp

    r96407 r98011  
    192192HRESULT AudioAdapter::getEnabled(BOOL *aEnabled)
    193193{
     194    AutoCaller autoCaller(this);
     195    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     196
    194197    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    195198
     
    221224HRESULT AudioAdapter::getEnabledIn(BOOL *aEnabled)
    222225{
     226    AutoCaller autoCaller(this);
     227    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     228
    223229    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    224230
     
    251257HRESULT AudioAdapter::getEnabledOut(BOOL *aEnabled)
    252258{
     259    AutoCaller autoCaller(this);
     260    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     261
    253262    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    254263
     
    281290HRESULT AudioAdapter::getAudioDriver(AudioDriverType_T *aAudioDriver)
    282291{
     292    AutoCaller autoCaller(this);
     293    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     294
    283295    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    284296
     
    320332HRESULT AudioAdapter::getAudioController(AudioControllerType_T *aAudioController)
    321333{
     334    AutoCaller autoCaller(this);
     335    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     336
    322337    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    323338
     
    379394HRESULT AudioAdapter::getAudioCodec(AudioCodecType_T *aAudioCodec)
    380395{
     396    AutoCaller autoCaller(this);
     397    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     398
    381399    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    382400
     
    448466HRESULT AudioAdapter::getPropertiesList(std::vector<com::Utf8Str>& aProperties)
    449467{
     468    AutoCaller autoCaller(this);
     469    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     470
    450471    using namespace settings;
    451472
     
    466487HRESULT AudioAdapter::getProperty(const com::Utf8Str &aKey, com::Utf8Str &aValue)
    467488{
     489    AutoCaller autoCaller(this);
     490    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     491
    468492    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    469493
     
    477501HRESULT AudioAdapter::setProperty(const com::Utf8Str &aKey, const com::Utf8Str &aValue)
    478502{
     503    AutoCaller autoCaller(this);
     504    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     505
    479506    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    480507
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