kcompactdisc crashes on phonon read

Robby Stephenson robby at periapsis.org
Sat Feb 7 03:35:21 GMT 2009

I'm having a problem that KCompactDisc is crashing with the Phonon
backend, and I believe it's because
KPhononCompactDiscPrivate::queryMetadata() is trying to insert string
values into an empty list at index 0. Here's a patch that fixes the crash,
though I don't know if this is the best way to expand a list.

There's also an attempt to connect to a updateMetaData() slot that
doesn't exist. I'm not sure how to fix that.

This is with the 4.2 branch.


--- phonon_interface.cpp        (revision 922442)
+++ phonon_interface.cpp        (working copy)
@@ -239,6 +239,11 @@
       kDebug() << "METADATA";
       //kDebug() << data;

+       while(m_trackArtists.count() < m_track+1)
+               m_trackArtists << QString();
+        while(m_trackTitles.count() < m_track+1)
+               m_trackTitles << QString();

More information about the kde-multimedia mailing list