summaryrefslogtreecommitdiff
blob: 093ef01e986903602fa0138ab08efe76f4541cbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Passing const char * instead of QByteArray to printf

http://bugs.gentoo.org/show_bug.cgi?id=304755

Patch written by Kacper Kowalik <xarthisius.kk@gmail.com>

--- src/xine/k9xineplayer.cpp
+++ src/xine/k9xineplayer.cpp
@@ -251,7 +251,7 @@
 
     if ((vo_port = xine_open_video_driver(xine,
                                           m_vo.toAscii(), XINE_VISUAL_TYPE_X11, (void *) &vis)) == NULL) {
-        printf("I'm unable to initialize '%s' video driver. Giving up.\n", m_vo.toAscii());
+        printf("I'm unable to initialize '%s' video driver. Giving up.\n", m_vo.toAscii().constData());
         return ;
     }
 
@@ -270,7 +270,7 @@
     running=false;
     m_title="";
     if ((!xine_open(stream, m_mrl.toUtf8())) || (!xine_play(stream, 0, 0))) {
-        printf("Unable to open mrl '%s'\n", m_mrl.toUtf8());
+        printf("Unable to open mrl '%s'\n", m_mrl.toUtf8().constData());
         return ;
     }
     QTimer::singleShot (500, this, SLOT (updatePosition ()));