[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Phonon] 0606c94: fix constness in gstreamer codec installation thin
From:       Martin Sandsmark <martin.sandsmark () kde ! org>
Date:       2010-08-01 14:24:06
Message-ID: 201008011424.o71EO6d1010235 () kore ! kollide ! net
[Download RAW message or body]

commit 0606c9488adea13a48e0e9d2b1ce45cb6a0e6023
Author: Martin Sandsmark <martin.sandsmark@kde.org>
Date:   Sun Aug 1 16:45:51 2010 +0200

    fix constness in gstreamer codec installation thingy

diff --git a/gstreamer/mediaobject.cpp b/gstreamer/mediaobject.cpp
index 92cfc19..d9707dc 100644
--- a/gstreamer/mediaobject.cpp
+++ b/gstreamer/mediaobject.cpp
@@ -210,8 +210,8 @@ void MediaObject::noMorePadsAvailable ()
 #ifdef PLUGIN_INSTALL_API
         GstInstallPluginsContext *ctx = gst_install_plugins_context_new ();
         gchar *details[2];
-        const QByteArray missingCodec = m_missingCodecs.first().toLocal8Bit();
-        details[0] = missingCodec.constData();
+        QByteArray missingCodec = m_missingCodecs.first().toLocal8Bit();
+        details[0] = missingCodec.data();
         details[1] = NULL;
         GstInstallPluginsReturn status;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic