VirtualBox

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


Ignore:
Timestamp:
Feb 8, 2018 12:37:31 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120738
Message:

Audio/DrvAudio.cpp: Log if host stream has pending operations left in drvAudioStreamDestroyInternalBackend().

File:
1 edited

Legend:

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

    r70907 r70910  
    138138# endif /* unused */
    139139
    140 #if defined(VBOX_STRICT) || defined(LOG_ENABLED)
     140#ifdef LOG_ENABLED
    141141/**
    142142 * Converts an audio stream status to a string.
     
    31223122    int rc = VINF_SUCCESS;
    31233123
    3124 #ifdef VBOX_STRICT
     3124#ifdef LOG_ENABLED
    31253125    char *pszHstSts = dbgAudioStreamStatusToStr(pHstStream->fStatus);
    31263126    LogFunc(("[%s] fStatus=%s\n", pHstStream->szName, pszHstSts));
     
    31383138            pHstStream->fStatus &= ~PDMAUDIOSTREAMSTS_FLAG_INITIALIZED;
    31393139
    3140 #ifdef VBOX_STRICT
    3141             pszHstSts = dbgAudioStreamStatusToStr(pHstStream->fStatus);
    3142             AssertMsg(pHstStream->fStatus == PDMAUDIOSTREAMSTS_FLAG_NONE,
    3143                       ("Stream '%s' still has %s set when destroying, must close properly first\n",
    3144                        pHstStream->szName, pszHstSts));
    3145             RTStrFree(pszHstSts);
     3140#ifdef LOG_ENABLED
     3141            /* This is not fatal, but log it anyway. */
     3142            if (pHstStream->fStatus != PDMAUDIOSTREAMSTS_FLAG_NONE)
     3143                LogFunc(("[%s] Warning: Stream still has %s set when destroying, must properly drain first\n",
     3144                         pHstStream->szName, pszHstSts));
    31463145#endif
    31473146        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette