Workaround for Pioneer DVR-216D refusal to eject

This commit is contained in:
2009-11-12 17:56:18 +00:00
parent 0f37170759
commit 9160b1dcbb
4 changed files with 35 additions and 29 deletions

View File

@ -245,8 +245,14 @@ int mmc_function_spy(struct burn_drive *d, char * text)
d->cancel = 1;
return 0;
}
/* >>> should one rather have a positve list ? */
if (d->is_stopped && strcmp(text, "stop_unit") != 0 &&
strcmp(text, "eject") != 0 &&
strcmp(text, "start_unit") != 0 &&
strcmp(text, "load") != 0 &&
strncmp(text, "enumerate", 9) != 0 &&
strncmp(text, "sg_", 3) != 0) {
d->start_unit(d);
d->is_stopped = 0;