Menu

#35 Patch for correctly identifying iPod Shuffle 2nd Generation

open
nobody
None
5
2012-12-18
2011-07-02
Anonymous
No

I've noticed some strange behavior using gtkpod and banshee with my iPod
shuffle Second Generation.
For some reason calling
itdb_device_get_sysinfo (itdb_device.c)
returns sometimes "xA546" (but only in gtkpod) and sometimes just "A546".
Using banshee it always returns "A546" letting
get_ipod_info_from_model_number
to fail because of the lines 2040-2042:
if(isalpha(model_number[0])) {
model_number++;
}
In the banshee case "A546" is shortened to "546" and the model
information is not found in the model table anymore.

I've patched the library for me, increasing model_number only if it
starts with an 'x' (patched attached). I've no idea if this is the right
approach in any way. I even don't know if it is an error in libgpod or
not

I think it is much easier for you to see what is really going wrong in
there.

Anyway, thank you very much for writing this library. Great work!

Discussion

  • Nobody/Anonymous

     
  • Leo von Klenze

    Leo von Klenze - 2011-07-02

    You can contact me. I'm registered as lepokle on sourceforge.
    Cheers,
    Leo

     

Log in to post a comment.