VirtualBox

Changeset 65307 in vbox for trunk


Ignore:
Timestamp:
Jan 16, 2017 9:14:53 AM (8 years ago)
Author:
vboxsync
Message:

Main/EbmlWriter.cpp: Include VBox version + revision in the segment's WritingApp property.

File:
1 edited

Legend:

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

    r65281 r65307  
    2020#include <stack>
    2121#include <iprt/asm.h>
     22#include <iprt/buildconfig.h>
    2223#include <iprt/cdefs.h>
    2324#include <iprt/err.h>
     
    2728
    2829#include <VBox/log.h>
     30#include <VBox/version.h>
    2931
    3032#include "EbmlWriter.h"
     
    723725        LogFunc(("Info @ %RU64\n", m_offSegInfoStart));
    724726
    725         char szVersion[64];
    726         RTStrPrintf(szVersion, sizeof(szVersion), "vpxenc%s", vpx_codec_version_str()); /** @todo Make this configurable? */
     727        char szMux[64];
     728        RTStrPrintf(szMux, sizeof(szMux), "vpxenc%s", vpx_codec_version_str());
     729
     730        char szApp[64];
     731        RTStrPrintf(szApp, sizeof(szApp), VBOX_PRODUCT " %sr%u\n", VBOX_VERSION_STRING, RTBldCfgRevision());
    727732
    728733        m_Ebml.subStart(Info)
    729734              .serializeUnsignedInteger(TimecodeScale, 1000000)
    730735              .serializeFloat(Segment_Duration, m_tsLastPtsMs + iFrameTime - m_tsInitialPtsMs)
    731               .serializeString(MuxingApp, szVersion)
    732               .serializeString(WritingApp, szVersion)
     736              .serializeString(MuxingApp, szMux)
     737              .serializeString(WritingApp, szApp)
    733738              .subEnd(Info);
    734739    }
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