summaryrefslogtreecommitdiffstats
path: root/src/plugins/gstreamer/mediacapture/qgstreamervideoencode.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-03 16:58:59 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-04 13:36:08 +0200
commitb2b92dad82db4ed07a7eeb10f8e225d22d54a6c1 (patch)
tree7b3eaaabcd21c917d06f284e7ba95a5d91d7190a /src/plugins/gstreamer/mediacapture/qgstreamervideoencode.cpp
parent025f4d2ee1cdc4a68e880854584f9bef0980b630 (diff)
Change uses of {to,from}Ascii to {to,from}Latin1
This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: Ic591779a3431999c007fb0ff362c7e25ce54097e Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
Diffstat (limited to 'src/plugins/gstreamer/mediacapture/qgstreamervideoencode.cpp')
-rw-r--r--src/plugins/gstreamer/mediacapture/qgstreamervideoencode.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/gstreamer/mediacapture/qgstreamervideoencode.cpp b/src/plugins/gstreamer/mediacapture/qgstreamervideoencode.cpp
index fa84b81d2..67cfd38d8 100644
--- a/src/plugins/gstreamer/mediacapture/qgstreamervideoencode.cpp
+++ b/src/plugins/gstreamer/mediacapture/qgstreamervideoencode.cpp
@@ -240,16 +240,16 @@ GstElement *QGstreamerVideoEncode::createEncoder()
switch (value.type()) {
case QVariant::Int:
- g_object_set(G_OBJECT(encoderElement), option.toAscii(), value.toInt(), NULL);
+ g_object_set(G_OBJECT(encoderElement), option.toLatin1(), value.toInt(), NULL);
break;
case QVariant::Bool:
- g_object_set(G_OBJECT(encoderElement), option.toAscii(), value.toBool(), NULL);
+ g_object_set(G_OBJECT(encoderElement), option.toLatin1(), value.toBool(), NULL);
break;
case QVariant::Double:
- g_object_set(G_OBJECT(encoderElement), option.toAscii(), value.toDouble(), NULL);
+ g_object_set(G_OBJECT(encoderElement), option.toLatin1(), value.toDouble(), NULL);
break;
case QVariant::String:
- g_object_set(G_OBJECT(encoderElement), option.toAscii(), value.toString().toUtf8().constData(), NULL);
+ g_object_set(G_OBJECT(encoderElement), option.toLatin1(), value.toString().toUtf8().constData(), NULL);
break;
default:
qWarning() << "unsupported option type:" << option << value;
@@ -265,7 +265,7 @@ GstElement *QGstreamerVideoEncode::createEncoder()
structureTypes << "video/x-raw-yuv" << "video/x-raw-rgb";
foreach(const QString &structureType, structureTypes) {
- GstStructure *structure = gst_structure_new(structureType.toAscii().constData(), NULL);
+ GstStructure *structure = gst_structure_new(structureType.toLatin1().constData(), NULL);
if (!m_videoSettings.resolution().isEmpty()) {
gst_structure_set(structure, "width", G_TYPE_INT, m_videoSettings.resolution().width(), NULL);