VirtualBox

Changeset 96172 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Aug 12, 2022 1:27:46 PM (2 years ago)
Author:
vboxsync
Message:

Recording/Main: Changed IRecordingScreenSettings::features attribute to get/set a safe array of RecordingFeature entries instead of an anonymous ULONG. Makes it much easier to use. bugref:10275

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r96141 r96172  
    28072807    for (size_t i = 0; i < lstFeatures.size(); i++)
    28082808    {
    2809         if (lstFeatures.at(i).compare("video", RTCString::CaseInsensitive))
     2809        if (lstFeatures.at(i).compare("video", RTCString::CaseInsensitive) == 0)
    28102810            featureMap[RecordingFeature_Video] = true;
    2811         else if (lstFeatures.at(i).compare("audio", RTCString::CaseInsensitive))
     2811        else if (lstFeatures.at(i).compare("audio", RTCString::CaseInsensitive) == 0)
    28122812            featureMap[RecordingFeature_Audio] = true;
    28132813        /* ignore everything else */
     
    28262826void RecordingScreenSettings::featuresToString(const RecordingFeatureMap &featureMap, com::Utf8Str &strFeatures)
    28272827{
     2828    strFeatures = "";
     2829
    28282830    RecordingFeatureMap::const_iterator itFeature = featureMap.begin();
    28292831    while (itFeature != featureMap.end())
     
    28332835        if (itFeature->first == RecordingFeature_Audio && itFeature->second)
    28342836            strFeatures += "audio ";
    2835         strFeatures += " ";
    2836 
    28372837        ++itFeature;
    28382838    }
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