[Qt-interest] Problem with Phonon::Source Qt4.5.0

Renaud guezennec renaud.guezennec at gmail.com
Sat Mar 7 02:03:55 CET 2009


Since I compiled my own musicplayer with Qt4.5, error occurs. For
creating a new source, I use this constructor :
MediaSource::MediaSource ( const QString & fileName ) but for some files
with non-usual character in the path that does not work. For example,
all audio files in this folder /media/disk-1/musique/[#aznmp3]
Minimum_the_Harmonia_-_ku-iisu (2007.03.14)[320kbps]/*.mp3 can't be read
by phonon. I can avoid this error with using a QFile instance. It worked
fine with Qt4.4.X.


Problem occurs
Phonon::MediaSource source(current->getURI());
//the type of the source is not invalid. 
mediaObject->setCurrentSource(source);



To avoid the problem:
QFile* tmp = new QFile(current->getURI());
Phonon::MediaSource source(tmp);
mediaObject->setCurrentSource(source);


Is it a phonon problem or I do something wrong ?

I'm on Ubuntu 8.10 with Qt4.5 opensource  edition.

Regards
Renaud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090306/bd8b191d/attachment.html 


More information about the Qt-interest-old mailing list