VirtualBox

Changeset 68990 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Oct 4, 2017 3:17:45 PM (7 years ago)
Author:
vboxsync
Message:

VideoRec: Use Bstr instead of BSTR in VIDEORECCFG, comments.

Location:
trunk/src/VBox/Main/src-client
Files:
3 edited

Legend:

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

    r68984 r68990  
    25372537    rc = pMachine->COMGETTER(VideoCaptureFPS)((ULONG *)&pCfg->Video.uFPS);
    25382538    AssertComRCReturn(rc, VERR_COM_UNEXPECTED);
    2539     rc = pMachine->COMGETTER(VideoCaptureFile)(&pCfg->File.strFile);
     2539    rc = pMachine->COMGETTER(VideoCaptureFile)(pCfg->File.strName.asOutParam());
    25402540    AssertComRCReturn(rc, VERR_COM_UNEXPECTED);
    25412541    rc = pMachine->COMGETTER(VideoCaptureMaxFileSize)((ULONG *)&pCfg->File.uMaxSizeMB);
  • trunk/src/VBox/Main/src-client/VideoRec.cpp

    r68987 r68990  
    3030#include <iprt/time.h>
    3131
    32 #include <VBox/log.h>
    3332#include <VBox/com/VirtualBox.h>
    34 #include <VBox/com/com.h>
    35 #include <VBox/com/string.h>
    3633
    3734#include "EbmlWriter.h"
     
    938935    Assert(pCfg->enmDst    == VIDEORECDEST_FILE);
    939936
    940     Assert(com::Utf8Str(pCfg->File.strFile).isNotEmpty());
    941 
    942     char *pszAbsPath = RTPathAbsDup(com::Utf8Str(pCfg->File.strFile).c_str());
     937    Assert(pCfg->File.strName.isNotEmpty());
     938
     939    char *pszAbsPath = RTPathAbsDup(com::Utf8Str(pCfg->File.strName).c_str());
    943940    AssertPtrReturn(pszAbsPath, VERR_NO_MEMORY);
    944941
  • trunk/src/VBox/Main/src-client/VideoRec.h

    r68981 r68990  
    7575    /** Destination where to write the stream to. */
    7676    VIDEORECDEST            enmDst;
    77     union
     77
     78    /**
     79     * Structure for keeping recording parameters if
     80     * destination is a file.
     81     */
     82    struct
    7883    {
    79         /**
    80          * Structure for keeping recording parameters if
    81          * destination is a file.
    82          */
    83         struct
    84         {
    85             BSTR            strFile;
    86             /** Maximum file size (in MB) to record. */
    87             uint32_t        uMaxSizeMB;
    88         } File;
    89     };
     84        /** File name (as absolute path). */
     85        com::Bstr       strName;
     86        /** Maximum file size (in MB) to record. */
     87        uint32_t        uMaxSizeMB;
     88    } File;
    9089
    9190#ifdef VBOX_WITH_AUDIO_VIDEOREC
     
    9594    struct
    9695    {
     96        /** Whether audio recording is enabled or not. */
    9797        bool                fEnabled;
     98        /** Hertz (Hz) rate. */
    9899        uint16_t            uHz;
     100        /** Bits per sample. */
    99101        uint8_t             cBits;
     102        /** Number of audio channels. */
    100103        uint8_t             cChannels;
     104        /** Audio profile which is being used. */
    101105        VIDEORECPROFILE     enmProfile;
    102106    } Audio;
     
    108112    struct
    109113    {
     114        /** Whether video recording is enabled or not. */
    110115        bool                fEnabled;
     116        /** Target width (in pixels). */
    111117        uint32_t            uWidth;
     118        /** Target height (in pixels). */
    112119        uint32_t            uHeight;
     120        /** Target encoding rate. */
    113121        uint32_t            uRate;
     122        /** Target FPS. */
    114123        uint32_t            uFPS;
    115124
     
    140149        enmDst   = that.enmDst;
    141150
    142         File.strFile    = that.File.strFile;
     151        File.strName    = that.File.strName;
    143152        File.uMaxSizeMB = that.File.uMaxSizeMB;
    144153#ifdef VBOX_WITH_AUDIO_VIDEOREC
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