VirtualBox

Changeset 63971 in vbox for trunk


Ignore:
Timestamp:
Sep 23, 2016 12:23:44 PM (8 years ago)
Author:
vboxsync
Message:

Audio/AudioMixer.cpp: Respect pending disable status of the sink when enabling added audio streams.

File:
1 edited

Legend:

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

    r63965 r63971  
    476476        /** @todo Check if stream already is assigned to (another) sink. */
    477477
    478         /* If the sink is running, make sure that the added stream also is enabled. */
    479         if (pSink->fStatus & AUDMIXSINK_STS_RUNNING)
     478        /* If the sink is running and not in pending disable mode,
     479         * make sure that the added stream also is enabled. */
     480        if (    (pSink->fStatus & AUDMIXSINK_STS_RUNNING)
     481            && !(pSink->fStatus & AUDMIXSINK_STS_PENDING_DISABLE))
     482        {
    480483            rc = audioMixerStreamCtlInternal(pStream, PDMAUDIOSTREAMCMD_ENABLE, AUDMIXSTRMCTL_FLAG_NONE);
     484        }
    481485
    482486        if (RT_SUCCESS(rc))
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