Changeset 68387 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Aug 11, 2017 11:27:25 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r68384 r68387 2516 2516 pGstStrm->enmDir = pCfgGuest->enmDir; 2517 2517 2518 /* Retrieve host driver name for easier identification. */ 2519 AssertPtr(pThis->pHostDrvAudio); 2520 PPDMDRVINS pDrvAudioInst = PDMIBASE_2_PDMDRV(pThis->pDrvIns->pDownBase); 2521 AssertPtr(pDrvAudioInst); 2522 AssertPtr(pDrvAudioInst->pReg); 2523 2524 char szDriver[64]; 2525 RTStrPrintf(szDriver, RT_ELEMENTS(szDriver), "%s", pDrvAudioInst->pReg->szName); 2526 if (!strlen(szDriver)) 2527 { 2528 RTStrPrintf(szDriver, RT_ELEMENTS(szDriver), "Untitled"); 2529 AssertFailed(); /* Should never happen. */ 2530 } 2531 2518 2532 /* 2519 2533 * Init host stream. 2520 2534 */ 2521 RTStrPrintf(pHstStrm->szName, RT_ELEMENTS(pHstStrm->szName), " %s (Host)",2522 s trlen(pCfgHost->szName) ? pCfgHost->szName : "<Untitled>");2535 RTStrPrintf(pHstStrm->szName, RT_ELEMENTS(pHstStrm->szName), "[%s] %s (Host)", 2536 szDriver, strlen(pCfgHost->szName) ? pCfgHost->szName : "<Untitled>"); 2523 2537 2524 2538 rc = drvAudioStreamLinkToInternal(pHstStrm, pGstStrm); … … 2528 2542 * Init guest stream. 2529 2543 */ 2530 RTStrPrintf(pGstStrm->szName, RT_ELEMENTS(pGstStrm->szName), " %s (Guest)",2531 s trlen(pCfgGuest->szName) ? pCfgGuest->szName : "<Untitled>");2544 RTStrPrintf(pGstStrm->szName, RT_ELEMENTS(pGstStrm->szName), "[%s] %s (Guest)", 2545 szDriver, strlen(pCfgGuest->szName) ? pCfgGuest->szName : "<Untitled>"); 2532 2546 2533 2547 pGstStrm->fStatus = pHstStrm->fStatus; /* Reflect the host stream's status. */
Note:
See TracChangeset
for help on using the changeset viewer.