diff options
Diffstat (limited to 'arts/kde/kplayobjectfactory.cc')
-rw-r--r-- | arts/kde/kplayobjectfactory.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arts/kde/kplayobjectfactory.cc b/arts/kde/kplayobjectfactory.cc index 99a2e2edb..3e83d54da 100644 --- a/arts/kde/kplayobjectfactory.cc +++ b/arts/kde/kplayobjectfactory.cc @@ -155,7 +155,7 @@ KDE::PlayObject *KDE::PlayObjectFactory::createPlayObject(const KURL& _url, cons } // decide if it's a local file. mpeglib provides cdda reading and decoding, so we prefer that over kio_audiocd - if ( url.isLocalFile() || !d->allowStreaming || (url.protocol() == "audiocd" && mimetype == "application/x-cda" && mimeTypes().contains( "application/x-cda" ) ) ) + if ( url.isLocalFile() || !d->allowStreaming || (url.protocol() == "audiocd" && mimetype == "application/x-cda" && mimeTypes().tqcontains( "application/x-cda" ) ) ) { // we rely on the delivered mimetype if it's a local file d->playObj = new KDE::PlayObject( d->server.createPlayObjectForURL( string( TQFile::encodeName( url.path() ) ), string( mimetype.latin1() ), createBUS ), false ); @@ -202,7 +202,7 @@ TQStringList KDE::PlayObjectFactory::mimeTypes(void) for(vector<string>::iterator mimetype = mimetypes->begin(); mimetype != mimetypes->end(); ++mimetype) { - TQString name = TQString::fromLocal8Bit((*mimetype).c_str()).stripWhiteSpace(); + TQString name = TQString(TQString::fromLocal8Bit((*mimetype).c_str())).stripWhiteSpace(); if(KMimeType::mimeType(name)) results.append(name); } |