Changeset 85449 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jul 24, 2020 7:11:33 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139494
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp
r85346 r85449 715 715 716 716 rc = RTSemEventWait(hEvtInit, RT_MS_10SEC); /* 10 seconds should be plenty. */ 717 718 pa_threaded_mainloop_lock(pThis->pMainLoop); 719 fLocked = true; 720 721 pa_context_state_t cstate = pa_context_get_state(pThis->pContext); 722 if (cstate != PA_CONTEXT_READY) 717 if (RT_SUCCESS(rc)) 723 718 { 724 LogRel(("PulseAudio: Failed to initialize context (state %d, rc=%Rrc)\n", cstate, rc)); 725 if (RT_SUCCESS(rc)) 726 rc = VERR_AUDIO_BACKEND_INIT_FAILED; 719 pa_threaded_mainloop_lock(pThis->pMainLoop); 720 fLocked = true; 721 722 pa_context_state_t cstate = pa_context_get_state(pThis->pContext); 723 if (cstate != PA_CONTEXT_READY) 724 { 725 LogRel(("PulseAudio: Failed to initialize context (state %d, rc=%Rrc)\n", cstate, rc)); 726 if (RT_SUCCESS(rc)) 727 rc = VERR_AUDIO_BACKEND_INIT_FAILED; 728 } 729 else 730 { 731 /* Install the main state changed callback to know if something happens to our acquired context. */ 732 pa_context_set_state_callback(pThis->pContext, paContextCbStateChanged, pThis /* pvUserData */); 733 } 727 734 } 735 else 736 LogRel(("PulseAudio: Waiting for context to become ready failed with %Rrc\n", rc)); 728 737 } 729 738 else … … 732 741 733 742 RTSemEventDestroy(hEvtInit); 734 735 /* Install the main state changed callback to know if something happens to our acquired context. */736 pa_context_set_state_callback(pThis->pContext, paContextCbStateChanged, pThis /* pvUserData */);737 743 } 738 744 while (0);
Note:
See TracChangeset
for help on using the changeset viewer.