[vlc-devel] [RFC] dbus plugin removal

Rémi Denis-Courmont remi at remlab.net
Sun Jul 18 22:01:04 CEST 2010


Le dimanche 18 juillet 2010 22:51:27 Mirsal Ennaime, vous avez écrit :
> Hello,
> 
> 2010/7/18 Rémi Denis-Courmont <remi at remlab.net>:
> > The libdbus control plugin is still waking up the CPU two times per
> > seconds.
> 
> I didn't realize this until I read your e-mail.
> I am willing to fix this issue and I just started working on a patch,
> which I will submit as soon as it works.
> 
> > To make matters worse, it implements an interface (MPRIS) that
> > is widely accepted as broken by design.
> 
> Indeed, however a new version of the spec which addresses the known
> design issues is being worked on and almost finished. (It already
> underwent several rounds of review and correction and it is rather
> close to being released. The current draft spec is here:
> http://www.mpris.org/mirsal/2.0-draft/spec.html)
> 
> > On top of that, libdbus is not quite thread-safe.
> 
> I thought the thread safety issues had been fixed. I need to dig a bit
> more to find out about this. Do you have any pointers ?

For a start, libdbus calls (un)setenv(). Then I don't see how LibVLC can call 
the threads init function early enough. And last, libdbus calls signal() which 
is not something a library should ever do.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list