[PATCH] Phonon Gstreamer backend

Matthias Kretz kretz at kde.org
Fri Jan 18 21:27:37 GMT 2008

On Friday 18 January 2008, Andre Magalhaes wrote:
> On Jan 18, 2008 3:29 PM, Matthias Kretz <kretz at kde.org> wrote:
> > Yes, to create a gstreamer backend that shows up in the KCM I three
> > solutions currently:
> > a) compile a second plugin from the same sources just with a different
> > factory b) create a plugin with KDE factories that loads the real backend
> > (via Qt plugin interface)
> > c) "fix" the Phonon KDE platform plugin to also load plugins via the Qt
> > plugin interface
> >
> > I know that a) and b) will work. I don't know all the implications of c)
> > yet. But if you want to give it a shot...
> a) and b)  seems more like a hack to me. What is the appropriate way
> to this? c) seems the most appropriate but I am not sure.

Yes, I'm also preferring c) ATM.

> If phonon plugins can't be exported using KPluginFactory, phonon should
> proper load the plugins exported by Q_EXPORT_PLUGIN2

What you need to do is to patch KdePlatformPlugin::createBackend(KService::Ptr 
newService) (in kdelibs/phonon/platform_kde/kdepluginfactory.cpp) to also 
load plugins using the Qt pluginloader. Look at kdelibs/phonon/factory.cpp 
how to do that.

Matthias Kretz (Germany)                            <><
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080118/b6e0018d/attachment.sig>

More information about the kde-core-devel mailing list