zoidy / walkmanmtp

Automatically exported from code.google.com/p/walkmanmtp
0 stars 0 forks source link

Wrong devices list parsing #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect a device with a drive letter in its name (e.g. non-mtp devices:
dunno why, but removable drives & co. get reported in devices list, even my
brother's iPod nano, and they have a name like this: "{Device name} (X:)")
2. Open WMTP. If it's already opened, refresh devices list
3. Device names get splitted: "{device name} (X" and ")" are reported as
separate devices. Selecting them doesn't work of course and makes WMTP hang.

What is the expected output? What do you see instead?
Not to have these devices in devices list, or at least to have them correctly

What version of the product are you using? On what operating system?
r28, WinXP Pro SP2

Please provide any additional information below.
The problem is that splitting returned devices list:

devarr = ret.Split(":"c)

obviously can't work. They sould be separated by another "illegal" filename
character, '%' for example, for this stuff to work

Original issue reported on code.google.com by pog...@gmail.com on 18 May 2008 at 12:45

GoogleCodeExporter commented 9 years ago
this is fixed as of r29.  Having these other devices there isn't that useful 
though,
since the program doesn't work with them.  Need to find some way of only 
showing MTP
devices

Original comment by rios.fer...@gmail.com on 20 May 2008 at 12:03

GoogleCodeExporter commented 9 years ago
There might be a quick way to detect if it's a player or something else: check 
if
device has WMDM_DEVICE_TYPE_PLAYBACK capability (as stated in
http://msdn.microsoft.com/en-us/library/bb231816(VS.85).aspx, this flag implies 
audio
playback capabilities). Also, you might find something useful in Creative's open
source mtp-related code section on
http://connect.creativelabs.com/opensource/Wiki/Forms/AllPages.aspx...
Attached a device capability listing from device details window, for an usb 
pendrive
("usb") and my sony nwz-a816 ("walkman")

Original comment by pog...@gmail.com on 20 May 2008 at 12:38

Attachments: