VirtualBox

Changeset 65224 in vbox for trunk/src


Ignore:
Timestamp:
Jan 10, 2017 12:46:03 PM (8 years ago)
Author:
vboxsync
Message:

Main/VideoRec: Option comparison fixes.

File:
1 edited

Legend:

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

    r65221 r65224  
    671671        pos = options.parseKeyValue(key, value, pos);
    672672
    673         if (key.compare("vc_quality", Utf8Str::CaseInsensitive))
    674         {
    675             if (value.compare("realtime", Utf8Str::CaseInsensitive))
     673        if (key.compare("vc_quality", Utf8Str::CaseInsensitive) == 0)
     674        {
     675            if (value.compare("realtime", Utf8Str::CaseInsensitive) == 0)
    676676            {
    677677                pStream->uEncoderDeadline = VPX_DL_REALTIME;
    678678            }
    679             else if (value.compare("good", Utf8Str::CaseInsensitive))
     679            else if (value.compare("good", Utf8Str::CaseInsensitive) == 0)
    680680            {
    681681                pStream->uEncoderDeadline = 1000000 / uFps;
    682682            }
    683             else if (value.compare("best", Utf8Str::CaseInsensitive))
     683            else if (value.compare("best", Utf8Str::CaseInsensitive) == 0)
    684684            {
    685685                pStream->uEncoderDeadline = VPX_DL_BEST_QUALITY;
     
    691691            }
    692692        }
    693         if (key.compare("vc_enabled", Utf8Str::CaseInsensitive))
     693        if (key.compare("vc_enabled", Utf8Str::CaseInsensitive) == 0)
    694694        {
    695695#ifdef VBOX_WITH_AUDIO_VIDEOREC
    696             if (value.compare("false", Utf8Str::CaseInsensitive)) /* Disable audio. */
     696            if (value.compare("false", Utf8Str::CaseInsensitive) == 0) /* Disable audio. */
    697697            {
    698698                enmMode = WebMWriter::Mode_Audio;
     
    701701#endif
    702702        }
    703         if (key.compare("ac_enabled", Utf8Str::CaseInsensitive))
     703        if (key.compare("ac_enabled", Utf8Str::CaseInsensitive) == 0)
    704704        {
    705705#ifdef VBOX_WITH_AUDIO_VIDEOREC
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