xmms_remote_playlist_clear/xmms_remote_playlist_delete freezes xmms
"yay...it's jim!!!" <[email protected]>
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi.
I'm writing a general plugin at the moment (using xmms 1.2.10), but
whenever i try to call xmms_remote_playlist_clear or
xmms_remote_playlist_delete xmms freezes. Below is the most vanilla
code i could come up with to clear the playlist (which freezes):-
#include <stdio.h>
#include <xmms/xmmsctrl.h>
#include <xmms/plugin.h>
static void blah_init(void);
GeneralPlugin blah =
{
NULL,
NULL,
-1,
"_Blah",
blah_init,
NULL,
NULL,
NULL,
};
GeneralPlugin *get_gplugin_info(void)
{
return (&blah);
}
void blah_init(void)
{
//check that it gets here
printf("play0:%s\n",xmms_remote_get_playlist_file(blah.xmms_session,0));
xmms_remote_playlist_clear (blah.xmms_session);
return;
}
Anyone care to tell me why i'm stupid?
Cheers
-jim