VirtualBox

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


Ignore:
Timestamp:
Jan 19, 2018 12:18:45 PM (7 years ago)
Author:
vboxsync
Message:

Audio: Made attaching of backend streams non-fatal, as backends could not be attached to one's LUN (yet).

Location:
trunk/src/VBox/Devices/Audio
Files:
3 edited

Legend:

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

    r70436 r70642  
    24642464    {
    24652465        int rc2 = hdaMixerAddDrvStream(pThis, pMixSink, pCfg, pDrv);
    2466         if (RT_SUCCESS(rc))
    2467             rc = rc2;
    2468     }
    2469 
    2470     LogFlowFuncLeaveRC(rc);
     2466        if (RT_FAILURE(rc2))
     2467            LogFunc(("Attaching stream failed with %Rrc\n", rc2));
     2468
     2469        /* Do not pass failure to rc here, as there might be drivers which aren't
     2470         * configured / ready yet. */
     2471    }
     2472
    24712473    return rc;
    24722474}
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r69119 r70642  
    15801580    {
    15811581        int rc2 = ichac97MixerAddDrvStream(pThis, pMixSink, pCfg, pDrv);
    1582         if (RT_SUCCESS(rc))
    1583             rc = rc2;
     1582        if (RT_FAILURE(rc2))
     1583            LogFunc(("Attaching stream failed with %Rrc\n", rc2));
     1584
     1585        /* Do not pass failure to rc here, as there might be drivers which aren't
     1586         * configured / ready yet. */
    15841587    }
    15851588
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r69876 r70642  
    23682368    {
    23692369        int rc2 = sb16CreateDrvStream(pThis, pCfg, pDrv);
    2370         if (RT_SUCCESS(rc))
    2371             rc = rc2;
     2370        if (RT_FAILURE(rc2))
     2371            LogFunc(("Attaching stream failed with %Rrc\n", rc2));
     2372
     2373        /* Do not pass failure to rc here, as there might be drivers which aren't
     2374         * configured / ready yet. */
    23722375    }
    23732376
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