VirtualBox

Changeset 64379 in vbox


Ignore:
Timestamp:
Oct 24, 2016 12:20:54 PM (8 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio.cpp: Don't create internal stream objects if backend failed to initialize.

File:
1 edited

Legend:

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

    r64333 r64379  
    552552
    553553    PDMAUDIOSTREAMCFG CfgHostAcq;
    554     int rc = drvAudioStreamCreateInternalBackend(pThis,pHstStream, pCfgHost, &CfgHostAcq);
     554    int rc = drvAudioStreamCreateInternalBackend(pThis, pHstStream, pCfgHost, &CfgHostAcq);
    555555    if (RT_FAILURE(rc))
    556556        return rc;
     
    18711871        rc = drvAudioStreamInitInternal(pThis, pHstStrm, pCfgHost, pCfgGuest);
    18721872        if (RT_FAILURE(rc))
    1873         {
    1874             LogFlowFunc(("Stream not available (yet)\n"));
    1875             rc = VINF_SUCCESS;
    1876         }
     1873            break;
    18771874
    18781875#ifdef VBOX_WITH_STATISTICS
     
    19071904                                      szStatName, STAMUNIT_COUNT, "Total samples played.");
    19081905        }
     1906        else
     1907            AssertFailed();
    19091908#endif
    19101909
     
    22092208                    PDMDrvHlpSTAMDeregister(pThis->pDrvIns, &pHstStream->Out.StatSamplesPlayed);
    22102209                }
     2210                else
     2211                    AssertFailed();
    22112212#endif
    22122213                RTListNodeRemove(&pHstStream->Node);
     
    22382239                    PDMDrvHlpSTAMDeregister(pThis->pDrvIns, &pGstStream->Out.StatSamplesPlayed);
    22392240                }
     2241                else
     2242                    AssertFailed();
    22402243#endif
    22412244                RTListNodeRemove(&pGstStream->Node);
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