Re: Re: USB DVD Device Support
Home › Forums › Development › USB DVD Device Support › Re: Re: USB DVD Device Support
February 11, 2011 at 9:16 am
#28328
Anonymous
Inactive
@rodries wrote:
The new one is using a specific function to detect media type, maybe we can use both methods, anyway a dvd must return 2048 sector size. You have to do the tests, it’s your decision because you are the only one with a usb dvd
Rodries, If you don’t see other drawback, i’d suggest to restore the old DVD detection function (adding the __mounted condition):
s32 USBStorage_IsDVD()
{
u32 sectorsize,numSectors;
if(!__mounted)
return 0;
USBStorage_ReadCapacity(&__usbfd, __lun, §orsize, &numSectors);
if(sectorsize>512) return 1;
return 0;
}
@rodries wrote:
Seems that the only way to detect if the dvd is inserted is calling to USBStorage_ReadCapacity
So if you use my old USBStorage_IsDVD then it will return 0 if dvd is not inserted
Ok. I have to check the code for detecting the device changes.
