[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdemultimedia/kscd/libwm
From:       Alex Kern <alex.kern () gmx ! de>
Date:       2004-07-06 20:33:19
Message-ID: 20040706203319.086D4126C1 () office ! kde ! org
[Download RAW message or body]

CVS commit by kernalex: 

properly init status


  M +6 -1      cdda.c   1.7


--- kdemultimedia/kscd/libwm/cdda.c  #1.6:1.7
@@ -112,4 +112,5 @@ gen_cdda_init( struct wm_drive *d )
     dev.blocks = blks;
     dev.numblocks = NUMBLOCKS;
+    dev.status = WM_CDM_UNKNOWN;
 
     if ((ret = wmcdda_init(&dev)))
@@ -145,5 +146,9 @@ cdda_get_drive_status( struct wm_drive *
 {
     if (d->cdda_slave > -1) {
+        if(dev.status)
         *mode = dev.status;
+        else
+          *mode = oldmode;
+
         if (*mode == WM_CDM_PLAYING) {
             *track = dev.track;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic