GNOME Bugzilla – Bug 595401
gobject assertion and null access to volume instance in playbin
Last modified: 2009-10-31 13:04:25 UTC
Created attachment 143298 [details] [review] patch to mitigate the issue Playbin keep a pointer to the volume instance instead of a reference to do volume level and mute. I've experienced some race related access to the instance after it was finalized.
Can you provide a sample that exposes this problem? I don't see why anything should go wrong here, playbin always owns a reference (or better the GstBin does) and the volume element is never removed from the bin (only in the final dispose). (Apart from that you should really use playbin2 ;) )
Ok, after discussing on IRC I'm going to push this after 0.10.25 release. That code is still a bit fishy but this is playbin1 and in playbin2 it's all fixed and better ;)
> Ok, after discussing on IRC I'm going to push this after 0.10.25 release Could do that now if the patch is still needed..
commit 5cd9c08cf60f6e0d1e2e6895e3dde28556d205f9 Author: Josep Torra Valles <n770galaxy@gmail.com> Date: Sat Oct 31 14:02:40 2009 +0100 playbin: Make sure to keep a reference on the volume element Fixes null pointer dereferences under certain circumstances. Fixes bug #595401.