Changeset 82588 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Dec 16, 2019 4:37:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r82581 r82588 1502 1502 if (RT_SUCCESS(rc)) 1503 1503 { 1504 if (pStream) /* Can be NULL if un-setting. */1504 if (pStream) 1505 1505 { 1506 1506 AssertPtr(pStream->pStream); … … 1509 1509 rc = pStream->pConn->pfnEnable(pStream->pConn, PDMAUDIODIR_IN, true /* Enable */); 1510 1510 if (RT_SUCCESS(rc)) 1511 {1512 1511 pSink->In.pStreamRecSource = pStream; 1513 }1514 1512 else if (pSink->In.pStreamRecSource->pConn) /* Stay with the current recording source (if any) and re-enable it. */ 1515 1513 { … … 1519 1517 } 1520 1518 } 1519 else 1520 pSink->In.pStreamRecSource = NULL; /* Unsetting, see audioMixerSinkRemoveStreamInternal. */ 1521 1521 } 1522 1522 … … 1525 1525 1526 1526 if (RT_SUCCESS(rc)) 1527 {1528 1527 LogRel(("Audio Mixer: Setting recording source of sink '%s' to '%s'\n", 1529 1528 pSink->pszName, pSink->In.pStreamRecSource ? pSink->In.pStreamRecSource->pszName : "<None>")); 1530 }1531 1529 else if (rc != VERR_AUDIO_STREAM_NOT_READY) 1532 {1533 1530 LogRel(("Audio Mixer: Setting recording source of sink '%s' to '%s' failed with %Rrc\n", 1534 1531 pSink->pszName, pSink->In.pStreamRecSource ? pSink->In.pStreamRecSource->pszName : "<None>", rc)); 1535 }1536 1532 1537 1533 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.