|
Line
Link Here
|
|
-- dvd+rw-tools-5.21.4.10.8/growisofs_mmc.cpp 2004-07-16 14:48:57.000000000 +0200 |
|
|
|
Lines 1484-1491
Link Here
|
| 1484 |
cmd[1] = 0x01; // "IMMED" |
1484 |
cmd[1] = 0x01; // "IMMED" |
| 1485 |
cmd[2] = mode; // "Close session" |
1485 |
cmd[2] = mode; // "Close session" |
| 1486 |
cmd[9] = 0; |
1486 |
cmd[9] = 0; |
| 1487 |
if ((err=cmd.transport())) |
1487 |
|
| 1488 |
sperror ("CLOSE SESSION",err); |
1488 |
// it seems, that pioneer is a bit crappy |
|
|
1489 |
while (err=cmd.transport()) { |
| 1490 |
if (SK(err)==0x2 && ASC(err)==0x04 && ASCQ(err)==0x07) { |
| 1491 |
sperror ("CLOSE SESSION (but try to continue)",err); |
| 1492 |
usleep(10000); |
| 1493 |
} else { |
| 1494 |
sperror ("CLOSE SESSION",err); |
| 1495 |
break; |
| 1496 |
} |
| 1497 |
} |
| 1489 |
|
1498 |
|
| 1490 |
if (wait_for_unit (cmd)) break; |
1499 |
if (wait_for_unit (cmd)) break; |
| 1491 |
|
1500 |
|