VirtualBox

Changeset 74912 in vbox


Ignore:
Timestamp:
Oct 18, 2018 10:01:14 AM (6 years ago)
Author:
vboxsync
Message:

VideoRec/WebMWriter: Delete files again which no actual content has been written to (only header / footer present).

File:
1 edited

Legend:

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

    r74911 r74912  
    162162    Assert(CurSeg.mapTracks.size() == 0);
    163163
     164    Utf8Str strFileName = getFileName().c_str();
     165
    164166    close();
    165167
    166     return VINF_SUCCESS;
     168    int rc = VINF_SUCCESS;
     169
     170    /* If no clusters (= data) was written, delete the file again. */
     171    if (!CurSeg.cClusters)
     172        rc = RTFileDelete(strFileName.c_str());
     173
     174    LogFlowFuncLeaveRC(rc);
     175    return rc;
    167176}
    168177
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