25 lines
915 B
Diff
25 lines
915 B
Diff
|
commit fb12ab0afd49493df8d33a4e334775d9407ddfa9
|
||
|
Author: Stephane Berthelot <sberthelot@emisfr.com>
|
||
|
Date: Mon Aug 8 09:39:49 2011 +0200
|
||
|
|
||
|
Too short track info dataLen returned at least on HL-DT-ST BH10LS30
|
||
|
Workaround the structure len like other drives but extend from 4
|
||
|
to 6 bytes minimum check.
|
||
|
This avoids a 0 byte BR-R capacity bug with this drive
|
||
|
|
||
|
BUG: 268307
|
||
|
|
||
|
diff --git a/libk3bdevice/k3bdevice_mmc.cpp b/libk3bdevice/k3bdevice_mmc.cpp
|
||
|
index ab82bfa..3e7147f 100644
|
||
|
--- a/libk3bdevice/k3bdevice_mmc.cpp
|
||
|
+++ b/libk3bdevice/k3bdevice_mmc.cpp
|
||
|
@@ -309,7 +309,7 @@ bool K3b::Device::Device::readTrackInformation( UByteArray& data, int type, int
|
||
|
// DVD-DL: 48 (MMC5)
|
||
|
// CD: 36 (MMC2)
|
||
|
//
|
||
|
- if( dataLen <= 4 ) {
|
||
|
+ if( dataLen <= 6 ) {
|
||
|
int m = mediaType();
|
||
|
if( m & (MEDIA_DVD_R_DL|MEDIA_DVD_R_DL_SEQ|MEDIA_DVD_R_DL_JUMP) )
|
||
|
dataLen = 48;
|