[PATCH] Phonon Gstreamer backend

Andre Magalhaes andrunko at gmail.com
Fri Jan 18 18:13:56 GMT 2008

On Jan 18, 2008 2:55 PM, Thiago Macieira <thiago at kde.org> wrote:
> Comments from me:
> #1 looks ok. I'll let Jens comment on it though.
> #2 looks mostly ok. I don't know if there was a reason for Phonon_UI
> instead of simply Phonon, so I'll again let Jens comment on it.

> #3 is definitely a no-go. Don't link to kdecore and don't #include KDE
> headers in the code. This code must compile with Qt 4.3+Phonon and Qt 4.4
> alone (without KDE).
So what should I do here? If I use Q_EXPORT_PLUGIN2 I get the error
"The library phonon_gstreamer does not offer a KDE 4 compatible
factory.". I just did that cause the xine plugin was doing the same.
But i saw in the ds9 plugin that it does:

Q_EXPORT_PLUGIN2(phonon_ds9, Phonon::DS9::Backend);
#include <kpluginfactory.h>
K_PLUGIN_FACTORY(DS9BackendFactory, registerPlugin<Phonon::DS9::Backend>();)

Should I do the same? What needs to be done to make it work?


Andre Moreira Magalhaes (andrunko)
Jabber: andrunko at gmail.com
MSN:   andremoreira at msn.com
Skype:  andrunko
Blog:    http://andrunko.blogspot.com

More information about the kde-core-devel mailing list