VirtualBox

Changeset 88559 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 16, 2021 10:26:45 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143854
Message:

DrvAudio: Need to return VERR_AUDIO_BACKEND_INIT_FAILED rather than VERR_FILE_NOT_FOUND/VERR_MODULE_NOT_FOUND when the lower driver fails to initalize due to missing libpulse.so.0 or similar. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r88534 r88559  
    37863786                                  N_("The host audio driver does not implement PDMIHOSTAUDIO!"));
    37873787        }
     3788    }
     3789
     3790    /*
     3791     * Do some status code simplification for beningn host driver init failures.
     3792     * The device above us will then replace it will the Null driver.
     3793     */
     3794    /** @todo Do the Null driver replacment here, then we don't have to duplicate
     3795     *        it in 3+ devices! */
     3796    if (   rc == VERR_MODULE_NOT_FOUND
     3797        || rc == VERR_SYMBOL_NOT_FOUND
     3798        || rc == VERR_FILE_NOT_FOUND
     3799        || rc == VERR_PATH_NOT_FOUND)
     3800    {
     3801        LogRel(("Audio: %Rrc -> VERR_AUDIO_BACKEND_INIT_FAILED\n", rc));
     3802        rc = VERR_AUDIO_BACKEND_INIT_FAILED;
    37883803    }
    37893804
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