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

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