Rockbox Development > Starting Development and Compiling

[solved] How can I start another plugin?

(1/3) > >>

gnu:
I wrote a little, hacky viewer that opens a mp3 file, extracts the unsynced lyrics, saves them to a file  and opens the file with the text viewer plugin. The extracting of the lyrics itself works OK, but I'm having problems with displaying them.
I simply wanted to start the text viewer plugin from within my plugin, but I was told this is impossible.
Is there really no way to start another plugin? It wouldn't have to run simultanosly to my plugin, it would only have to be started AFTER my plugin has terminated. How can I do that?

p.s.: I would ask this on IRC, but my browser seems to crash after a few minutes every time I open the IRC channel.... ??

shotofadds:
One possible cause is stack exhaustion, since the target will almost certainly have less available stack space than the sim. For example, if you declare a large array inside a function, this will eat up a huge amount of stack space. Might it be that?

EDIT: The original title of this thread was "Plugin works in sim but not on target" - hence my slightly cryptic reply.

gnu:
Sorry, now I edited the title of my thread so it actually describes what I want.

I want my plugin to start another plugin. Can I do that?

nls:
Only one plugin can run at a time but it may be possible to tell rockbox to start another plugin from inside a plugin, which will then replace the currently running one. Check out how rockbox loads plugins and add that function(s) to the plugin api and try it out :)

mschneider:
Yes it is possible. Take a look at plugin_load in plugin.h.

Navigation

[0] Message Index

[#] Next page

Go to full version