VirtualBox

Ignore:
Timestamp:
Nov 13, 2018 12:09:09 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126565
Message:

Recording/Main: Made the IRecordingScreenSettings::fileName getters and setters a bit more convenient by automatically returning the VM's default recording file name if no value or a simple dot ('.') is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp

    r75367 r75418  
    566566 * Returns the full path to the default video capture file.
    567567 */
    568 int RecordingSettings::i_getDefaultFileName(Utf8Str &strFile)
     568int RecordingSettings::i_getDefaultFileName(Utf8Str &strFile, bool fWithFileExtension)
    569569{
    570570    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     
    572572    strFile = m->pMachine->i_getSettingsFileFull(); // path/to/machinesfolder/vmname/vmname.vbox
    573573    strFile.stripSuffix();                          // path/to/machinesfolder/vmname/vmname
    574     strFile.append(".webm");                        // path/to/machinesfolder/vmname/vmname.webm
     574    if (fWithFileExtension)
     575        strFile.append(".webm");                    // path/to/machinesfolder/vmname/vmname.webm
    575576
    576577    return VINF_SUCCESS;
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