Hi all,<br><br>thought I'd commit that sneaky little bug which was crashing the whole program.<br><br>This is because on 64bits sizeof(int) != sizeof(char *) and va_args was truncating the values of my pointers!<br><br>
diff --git a/src/misc/media_library.c b/src/misc/media_library.c<br>index 8470094..b04b7fe 100644<br>--- a/src/misc/media_library.c<br>+++ b/src/misc/media_library.c<br>@@ -219,11 +219,11 @@ int ml_UpdateSimple( media_library_t *p_media_library,<br>
                         vlc_array_append( array, update );<br>                     break;<br>                 case 0:<br>-                    update->value.str = va_arg( args, char* );<br>+                    update->value.i = va_arg( args, int );<br>
                     vlc_array_append( array, update );<br>                     break;<br>                 case 1:<br>-                    update->value.i = va_arg( args, int );<br>+                    update->value.str = va_arg( args, char* );<br>
                     vlc_array_append( array, update );<br>                     break;<br>             }<br><br>-- <br>Tristan LANFREY<br>"putain, je viens de foutre le feu ŕ ma moustache en me rallumant une clope qui s'était éteinte. ca pue!" (c) Mathieu Leon<br>