[Bug 122524] kio_audiocd status update affects audio CD playback
Michel Briand
michelbriand at free.fr
Wed Jun 11 11:10:54 BST 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=122524
------- Additional Comments From michelbriand free fr 2008-06-11 12:10 -------
I modified the code to see if I can help...
--- kdemultimedia-3.5.9.orig/kioslave/audiocd/audiocd.cpp
+++ kdemultimedia-3.5.9/kioslave/audiocd/audiocd.cpp
@ -762,13 +762,13 @
return 0;
}
- if (0 != cdda_open(drive))
- {
- kdDebug(7117) << "cdda_open failed" << endl;
- error(KIO::ERR_CANNOT_OPEN_FOR_READING, d->device);
- cdda_close(drive);
- return 0;
- }
+// if (0 != cdda_open(drive))
+// {
+// kdDebug(7117) << "cdda_open failed" << endl;
+// error(KIO::ERR_CANNOT_OPEN_FOR_READING, d->device);
+// cdda_close(drive);
+// return 0;
+// }
return drive;
}
And I installed the new kio_audiocd.so in /usr/lib/kde3.
The behavior is different, but similar.
/dev/cdrom is accessed (open/close) and the music playing stops !
I tested like this :
- start playing with kscd
- verify that there is no kio_audiocd.so running
- verify /dev/cdrom with lsof: only kscd currently open it
- lauch konqueror and go to "storage...", press "refresh"...
Before my modif, openning konqueror would have stop immediately the CD.
With my new kio_audiocd.so, the playing don't stops when "storage" is openned.
It takes a little time to display the list of storage devices... Pressing "refresh" multiple times finaly display all devices and stops the CD.
[11/Jun/2008 12:07:38] * Command: lsof /dev/cdrom|sed -e 1d
kscd 6359 michel 10r BLK 3,64 2148 /dev/hdb
kio_audio 19946 michel 11u BLK 3,64 2148 /dev/hdb
kio_audio 19946 michel 12u BLK 3,64 2148 /dev/hdb
kio_audio 19946 michel 13r BLK 3,64 2148 /dev/hdb
Another time, the CD don't stop after multiple refresh presses but after 3 min of playing...
More information about the kde-multimedia
mailing list