VirtualBox

Changeset 65170 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 6, 2017 9:55:26 AM (8 years ago)
Author:
vboxsync
Message:

VideoRec: Removed not needed code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp

    r65162 r65170  
    5555    /** Pointer to host audio interface. */
    5656    PDMIHOSTAUDIO        IHostAudio;
    57     /** Pointer to the VRDP's console object. */
    58     ConsoleVRDPServer   *pConsoleVRDPServer;
    5957    /** Pointer to the DrvAudio port interface that is above us. */
    6058    PPDMIAUDIOCONNECTOR  pDrvAudio;
     
    219217static int avRecDestroyStreamIn(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    220218{
    221     RT_NOREF(pStream);
    222     PDRVAUDIOVIDEOREC pThis = PDMIHOSTAUDIO_2_DRVAUDIOVIDEOREC(pInterface);
    223 
    224     if (pThis->pConsoleVRDPServer)
    225         pThis->pConsoleVRDPServer->SendAudioInputEnd(NULL);
     219    RT_NOREF(pInterface, pStream);
    226220
    227221    return VINF_SUCCESS;
     
    422416
    423417    /*
    424      * Get the ConsoleVRDPServer object pointer.
    425      */
    426     void *pvUser;
    427     int rc = CFGMR3QueryPtr(pCfg, "ObjectVRDPServer", &pvUser); /** @todo r=andy Get rid of this hack and use IHostAudio::SetCallback. */
    428     AssertMsgRCReturn(rc, ("Confguration error: No/bad \"ObjectVRDPServer\" value, rc=%Rrc\n", rc), rc);
    429 
    430     /* CFGM tree saves the pointer to ConsoleVRDPServer in the Object node of AudioVideoRec. */
    431     pThis->pConsoleVRDPServer = (ConsoleVRDPServer *)pvUser;
    432 
    433     /*
    434418     * Get the AudioVideoRec object pointer.
    435419     */
    436     pvUser = NULL;
    437     rc = CFGMR3QueryPtr(pCfg, "Object", &pvUser); /** @todo r=andy Get rid of this hack and use IHostAudio::SetCallback. */
     420    void *pvUser = NULL;
     421    int rc = CFGMR3QueryPtr(pCfg, "Object", &pvUser); /** @todo r=andy Get rid of this hack and use IHostAudio::SetCallback. */
    438422    AssertMsgRCReturn(rc, ("Confguration error: No/bad \"Object\" value, rc=%Rrc\n", rc), rc);
    439423
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