Blame SOURCES/dvd+rw-tools-7.1-noevent.patch

6b477d
diff -up dvd+rw-tools-7.1/transport.hxx.debug dvd+rw-tools-7.1/transport.hxx
6b477d
--- dvd+rw-tools-7.1/transport.hxx.debug	2012-03-07 10:55:07.167322839 +0100
6b477d
+++ dvd+rw-tools-7.1/transport.hxx	2012-03-07 15:44:34.384202747 +0100
6b477d
@@ -1795,9 +1795,12 @@ static int handle_events (Scsi_Command &
6b477d
 		break;
6b477d
 	    case 5: ret |= 1<<5; break;		// Multiple Initiators
6b477d
 	    case 6:				// Device Busy
6b477d
-		if ((event[4]&0xF)==1 &&	// Timeout occured
6b477d
-		    (event[5]&0x3)!=0)
6b477d
-		{   poll(NULL,0,(descr&0xFFFF)*100+100);
6b477d
+		if ((event[4]&0xF)==1)		// Timeout occured
6b477d
+		{
6b477d
+		    if ((event[5]&0x3)==0)	// No Event
6b477d
+			return 0;		// Ready to accept any command
6b477d
+
6b477d
+		    poll(NULL,0,(descr&0xFFFF)*100+100);
6b477d
 		    cmd[0] = 0;		// TEST UNIT READY
6b477d
 		    cmd[5] = 0;
6b477d
 		    if ((err=cmd.transport()))