Contents of /trunk/dvd+rw-tools/patches/dvd+rw-tools-5.21.4.10.8-samsung-media-fix.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 701 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 701 byte(s)
-import
1 | --- dvd+rw-tools-5.21.4.10.8/transport.hxx 2004-08-25 01:36:29.000000000 +0200 |
2 | +++ dvd+rw-tools-5.21.4.10.8/transport.hxx 2004-10-21 12:46:33.260850008 +0200 |
3 | @@ -1551,7 +1551,12 @@ |
4 | p[3] &= 0x3F; // always Single-session? |
5 | |
6 | // setup Data Block Type |
7 | - if ((track[6]&0x0F)==1) p[4] = 8; |
8 | + // Some units [e.g. Toshiba/Samsung TS-H542A] return "unknown Data |
9 | + // Block Type" in track[6]&0x0F field. Essentially it's a firmware |
10 | + // glitch, yet it makes certain sense, as track may not be written |
11 | + // yet... |
12 | + if ((track[6]&0x0F)==1 || (track[6]&0x0F)==0x0F) |
13 | + p[4] = 8; |
14 | else fprintf (stderr,":-( none Mode 1 track\n"), |
15 | exit(FATAL_START(EMEDIUMTYPE)); |
16 |