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

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