forked from len0rd/rockbox
Fix crash when detecting a player in MTP mode.
Change-Id: I65bf6928584735d6a179750c313fb8e7dcf7add5
This commit is contained in:
parent
c03e665bad
commit
896b771710
2 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,6 @@ void Autodetection::detectUsb()
|
||||||
// the ini file needs to hold the IDs as hex values.
|
// the ini file needs to hold the IDs as hex values.
|
||||||
QMap<int, QStringList> usbids = SystemInfo::usbIdMap(SystemInfo::MapDevice);
|
QMap<int, QStringList> usbids = SystemInfo::usbIdMap(SystemInfo::MapDevice);
|
||||||
QMap<int, QStringList> usberror = SystemInfo::usbIdMap(SystemInfo::MapError);
|
QMap<int, QStringList> usberror = SystemInfo::usbIdMap(SystemInfo::MapError);
|
||||||
QMap<int, QStringList> usbincompat = SystemInfo::usbIdMap(SystemInfo::MapIncompatible);
|
|
||||||
|
|
||||||
// usb pid detection
|
// usb pid detection
|
||||||
QList<uint32_t> attached;
|
QList<uint32_t> attached;
|
||||||
|
@ -104,7 +103,7 @@ void Autodetection::detectUsb()
|
||||||
if(usberror.contains(attached.at(i))) {
|
if(usberror.contains(attached.at(i))) {
|
||||||
struct Detected d;
|
struct Detected d;
|
||||||
d.status = PlayerMtpMode;
|
d.status = PlayerMtpMode;
|
||||||
d.device = usbids.value(attached.at(i)).at(0);
|
d.device = usberror.value(attached.at(i)).at(0);
|
||||||
m_detected.append(d);
|
m_detected.append(d);
|
||||||
LOG_WARNING() << "[USB] detected problem with player" << d.device;
|
LOG_WARNING() << "[USB] detected problem with player" << d.device;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,4 +20,5 @@ Version 1.4
|
||||||
* Add support for Sandisk Sansa Clip Zip v01.01.21 firmware.
|
* Add support for Sandisk Sansa Clip Zip v01.01.21 firmware.
|
||||||
* Fix manual link for Archos Recorder V2.
|
* Fix manual link for Archos Recorder V2.
|
||||||
|
|
||||||
|
Version 1.4.1
|
||||||
|
* Fix crash on detecting player in MTP mode.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue