Bug 92197 - playback impossible after one CD is ejected and another one inserted
Summary: playback impossible after one CD is ejected and another one inserted
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kscd
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Aaron J. Seigo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-27 12:28 UTC by Michał Kosmulski
Modified: 2020-04-14 19:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Kosmulski 2004-10-27 12:28:58 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Slackware Packages
OS:                Linux

After one audio CD is played in ksCD and ejected and another one inserted, playing the newly inserted disk causes only choppy random noise to be played. Even exiting ksCD and starting it anew doesn't help. I noticed this recently and of course it is very annoying - so far I haven't found any other way of making the CD playback work again other than rebooting. Strangely enough, playing with other software, e.g. XMMS works all the time, even after ksCD refuses to play them properly as described above. I can't exactly tell whether this bug appeared after I upgraded to KDE 3.3.1 or after I changed my CD-Recorder to a newer model (I have Liteon 52x32x52 now and I used a Liteon 48x24x48 before, so the difference shouldn't be that big). BTW, digital playback behaves in exactly the same way as analog playback.
Comment 1 Richard Lärkäng 2004-11-03 15:57:02 UTC
CVS commit by larkang: 

Backport patch by aseigo:
merging some SUSE patches

--

Without this patch, when changing disc, the disc was spinning like crazy,
but after changing track it would work.

CCBUG: 92197


  M +6 -2      cdrom.c   1.34.2.1


--- kdemultimedia/kscd/libwm/cdrom.c  #1.34:1.34.2.1
@@ -353,5 +353,9 @@ wm_cd_status( void )
     thiscd.ntracks = 0;
     if(read_toc() || 0 == thiscd.ntracks)
+    {
+      close(drive.fd);
+      drive.fd = -1;
       mode = WM_CDM_NO_DISC;
+    }
     else /* refresh cdtext info */
       get_glob_cdtext(&drive, 1);


Comment 2 Richard Lärkäng 2004-12-09 16:18:18 UTC
Could you try to update to 3.3.2 and see if it helps, the patch I backported fixed a similar problem for me, although it wasn't exactly the same.
Comment 3 Michał Kosmulski 2004-12-09 16:27:29 UTC
I will try to, but my distro's slackware and now with Pat being sick it may take a long time before binary packages are released. I'm a bit too lazy to compile something as big as KDE from source, but if official or contributed packages for slackware appear, I will upgrade and see if this bug is fixed for me.
Comment 4 Michał Kosmulski 2004-12-13 12:36:21 UTC
I upgraded to 3.3.2 but the bug seems to be fixed only partially, i.e. now sometimes I can change discs and still be able to get ksCD to play and sometimes I get the same behavior as before.
Comment 5 Andrew Crouthamel 2018-11-02 04:23:21 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-11-16 02:40:16 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 7 groot 2020-04-14 19:00:14 UTC
KSCD was quietly ejected about two years ago since it never was ported to KDE Frameworks or Qt5. I'm closing this as "sorry, this is never going to be fixed in a newer product."