Projects
Multimedia
bino
bino-backport-qvariant.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bino-backport-qvariant.patch of Package bino (Revision 2)
Currently displaying revision
2
,
Show latest
--- src/player_qt.cpp.orig 2011-02-23 20:09:13.000000000 +0100 +++ src/player_qt.cpp 2011-02-23 20:17:50.000000000 +0100 @@ -1257,31 +1257,31 @@ _settings->beginGroup("Session"); if (!(_init_data.params.contrast >= -1.0f && _init_data.params.contrast <= +1.0f)) { - _init_data.params.contrast = _settings->value("contrast", QString("0")).toFloat(); + _init_data.params.contrast = _settings->value("contrast", QString("0")).toString().toFloat(); } if (!(_init_data.params.brightness >= -1.0f && _init_data.params.brightness <= +1.0f)) { - _init_data.params.brightness = _settings->value("brightness", QString("0")).toFloat(); + _init_data.params.brightness = _settings->value("brightness", QString("0")).toString().toFloat(); } if (!(_init_data.params.hue >= -1.0f && _init_data.params.hue <= +1.0f)) { - _init_data.params.hue = _settings->value("hue", QString("0")).toFloat(); + _init_data.params.hue = _settings->value("hue", QString("0")).toString().toFloat(); } if (!(_init_data.params.saturation >= -1.0f && _init_data.params.saturation <= +1.0f)) { - _init_data.params.saturation = _settings->value("saturation", QString("0")).toFloat(); + _init_data.params.saturation = _settings->value("saturation", QString("0")).toString().toFloat(); } if (!(_init_data.params.crosstalk_r >= 0.0f && _init_data.params.crosstalk_r <= 1.0f)) { - _init_data.params.crosstalk_r = _settings->value("crosstalk_r", QString("0")).toFloat(); + _init_data.params.crosstalk_r = _settings->value("crosstalk_r", QString("0")).toString().toFloat(); } if (!(_init_data.params.crosstalk_g >= 0.0f && _init_data.params.crosstalk_g <= 1.0f)) { - _init_data.params.crosstalk_g = _settings->value("crosstalk_g", QString("0")).toFloat(); + _init_data.params.crosstalk_g = _settings->value("crosstalk_g", QString("0")).toString().toFloat(); } if (!(_init_data.params.crosstalk_b >= 0.0f && _init_data.params.crosstalk_b <= 1.0f)) { - _init_data.params.crosstalk_b = _settings->value("crosstalk_b", QString("0")).toFloat(); + _init_data.params.crosstalk_b = _settings->value("crosstalk_b", QString("0")).toString().toFloat(); } _settings->endGroup(); _init_data.params.set_defaults(); @@ -1644,8 +1644,8 @@ _init_data.video_stream = std::max(0, std::min(_init_data.video_stream, _player->get_media_input().video_streams() - 1)); _init_data.audio_stream = QVariant(_settings->value("audio-stream", QVariant(_init_data.audio_stream)).toString()).toInt(); _init_data.audio_stream = std::max(0, std::min(_init_data.audio_stream, _player->get_media_input().audio_streams() - 1)); - _init_data.params.parallax = QVariant(_settings->value("parallax", QVariant(_init_data.params.parallax)).toString()).toFloat(); - _init_data.params.ghostbust = QVariant(_settings->value("ghostbust", QVariant(_init_data.params.ghostbust)).toString()).toFloat(); + _init_data.params.parallax = QVariant(_settings->value("parallax", QVariant(_init_data.params.parallax)).toString()).toString().toFloat(); + _init_data.params.ghostbust = QVariant(_settings->value("ghostbust", QVariant(_init_data.params.ghostbust)).toString()).toString().toFloat(); // Get stereo mode for this video _settings->endGroup(); QString mode_fallback = QString(parameters::stereo_mode_to_string(
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.