VirtualBox

Changeset 74877 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Oct 17, 2018 9:12:16 AM (6 years ago)
Author:
vboxsync
Message:

Audio/Mixer: Fixed triggering a harmless debug assertion if a certain stream is not ready in audioMixerSinkWriteToStreamEx().

File:
1 edited

Legend:

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

    r74057 r74877  
    18631863                    break;
    18641864                }
    1865                 else if (rc != VERR_AUDIO_STREAM_NOT_READY)
     1865                else if (rc == VERR_AUDIO_STREAM_NOT_READY)
     1866                {
     1867                    /* Stream is not enabled, just skip. */
     1868                    rc = VINF_SUCCESS;
     1869                }
     1870                else
    18661871                    LogRel2(("Mixer: Writing to mixer stream '%s' (sink '%s') failed, rc=%Rrc\n",
    18671872                             pMixStream->pszName, pSink->pszName, rc));
    18681873
    1869                 LogFunc(("[%s] Failed writing to stream '%s': %Rrc\n", pSink->pszName, pMixStream->pszName, rc));
     1874                if (RT_FAILURE(rc))
     1875                    LogFunc(("[%s] Failed writing to stream '%s': %Rrc\n", pSink->pszName, pMixStream->pszName, rc));
    18701876            }
    18711877        }
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