VirtualBox

Changeset 6133 in vbox


Ignore:
Timestamp:
Dec 18, 2007 4:09:31 PM (17 years ago)
Author:
vboxsync
Message:

pulse: lock a little bit more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/pulseaudio.c

    r6127 r6133  
    257257    }
    258258
    259     pa_threaded_mainloop_unlock(g_pMainLoop);
    260 
    261259    pBufAttr = pa_stream_get_buffer_attr(pStream);
    262260    obt->buffer_size = pBufAttr->maxlength;
     261
     262    pa_threaded_mainloop_unlock(g_pMainLoop);
    263263
    264264    LogRel(("Pulse: buffer settings: max=%d tlength=%d prebuf=%d minreq=%d\n",
     
    598598        goto fail;
    599599    }
    600     if (pa_threaded_mainloop_start(g_pMainLoop) < 0)
    601     {
    602         LogRel(("Pulse: Failed to start threaded mainloop: %s\n",
     600    pa_context_set_state_callback(g_pContext, context_state_callback, NULL);
     601    if (pa_context_connect(g_pContext, /*server=*/NULL, 0, NULL) < 0)
     602    {
     603        LogRel(("Pulse: Failed to connect to server: %s\n",
    603604                 pa_strerror(pa_context_errno(g_pContext))));
    604605        goto fail;
    605606    }
    606     pa_context_set_state_callback(g_pContext, context_state_callback, NULL);
    607     if (pa_context_connect(g_pContext, /*server=*/NULL, 0, NULL) < 0)
    608     {
    609         LogRel(("Pulse: Failed to connect to server: %s\n",
     607
     608    if (pa_threaded_mainloop_start(g_pMainLoop) < 0)
     609    {
     610        LogRel(("Pulse: Failed to start threaded mainloop: %s\n",
    610611                 pa_strerror(pa_context_errno(g_pContext))));
    611612        goto fail;
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