VirtualBox

Changeset 65216 in vbox


Ignore:
Timestamp:
Jan 9, 2017 4:13:17 PM (8 years ago)
Author:
vboxsync
Message:

VideoRec: Update.

File:
1 edited

Legend:

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

    r65212 r65216  
    444444                    if (cErrors > 0)
    445445                    {
    446                         LogRel(("Error %Rrc encoding / writing video frame\n", rc));
     446                        LogRel(("VideoRec: Error %Rrc encoding / writing video frame\n", rc));
    447447                        cErrors--;
    448448                    }
     
    654654#endif
    655655
    656     int rc = pStream->pEBML->create(pszFile, RTFILE_O_CREATE | RTFILE_O_WRITE | RTFILE_O_DENY_WRITE, enmMode,
     656    uint64_t fOpen = RTFILE_O_WRITE | RTFILE_O_DENY_WRITE;
     657#ifdef DEBUG
     658    fOpen |= RTFILE_O_CREATE_REPLACE;
     659#else
     660    fOpen |= RTFILE_O_CREATE;
     661#endif
     662
     663    int rc = pStream->pEBML->create(pszFile, fOpen, enmMode,
    657664                                    WebMWriter::AudioCodec_Opus, WebMWriter::VideoCodec_VP8);
    658665    if (RT_FAILURE(rc))
    659666    {
    660         LogRel(("Failed to create the video capture output file \"%s\" (%Rrc)\n", pszFile, rc));
     667        LogRel(("VideoRec: Failed to create the video capture output file '%s' (%Rrc)\n", pszFile, rc));
    661668        return rc;
    662669    }
     
    693700            else
    694701            {
    695                 LogRel(("Settings quality deadline to = %s\n", value.c_str()));
     702                LogRel(("VideoRec: Settings quality deadline to '%s'\n", value.c_str()));
    696703                pStream->uEncoderDeadline = value.toUInt32();
    697704            }
    698705        }
    699         else LogRel(("Getting unknown option: %s=%s\n", key.c_str(), value.c_str()));
     706        else
     707            LogRel(("VideoRec: Unknown option '%s' (value '%s'), skipping\n", key.c_str(), value.c_str()));
    700708
    701709    } while(pos != com::Utf8Str::npos);
     
    809817    if (pStream->pEBML->getAvailableSpace() < 0x100000)
    810818    {
    811         LogRel(("Storage has not enough free space available, stopping video capture\n"));
     819        LogRel(("VideoRec: Not enough free storage space available, stopping video capture\n"));
    812820        return true;
    813821    }
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