By tracking parents and using the proper GstMiniObject API for detecting writability instead of just the reference count. https://bugzilla.gnome.org/show_bug.cgi?id=797230