From: Dennis S. <sy...@yo...> - 2004-06-25 11:51:37
|
I have actually been using it in the examples (that is morphsdl, simplesdl, If you see documentation errors anywhere, please feel free to fix them I haven't yet proof readed it and it's mostly done in nightly hours :) On Fri, 2004-06-25 at 00:08 -0300, Duilio Javier Protti wrote: > I have found a major issue about libvisual interface. > The signature of visual_init() is: > > int visual_init (int *argc, char **argv[]) > > and the comment says: > > @param argv Pointer to a list of strings that make up the > argument vector or NULL. > > which is not true. That would be true if argv was it > a pointer to an array of pointers to char. > But argv is an array of pointers to pointers to char. > > I have found that error trying to set visual_init() from > XMMS plugin to show the correct program name when showing > debug messages (which I have added to keep track of the > bug that make XMMS crash on plugin disabling). > > Has anybody used this interface? I couldn't make it > work. However, changing the interface signature to: > > int visual_init (int *argc, char ***argv) > > and changing the client accordingly, everything works > fine. Dennis, do you think we must change the interface? Yes we must change it to ***argv, it's a mistake on my side :) Would you like to check this in ? |