gstreamer/tests/check
Tim-Philipp Müller c0c79188ca bus, clock: make sure these never have a floating ref
Clear the initial floating ref in the init function for
busses and clocks. These objects can be set on multiple
elements, so there's no clear parent-child relationship
here. Ideally we'd just not make them derive from
GInitiallyUnowned at all, but since we want to keep
using GstObject features for debugging, we'll just do
it like this.

This should also fix some problems with bindings, which
seem to get confused when they get floating refs from
non-constructor functions (or functions annotated to
have a 'transfer full' return type). This works now:

from gi.repository import GObject, Gst

GObject.threads_init()
Gst.init(None)

pipeline=Gst.Pipeline()
bus = pipeline.get_bus()
pipeline.set_state(Gst.State.NULL)
del pipeline;

https://bugzilla.gnome.org/show_bug.cgi?id=679286
https://bugzilla.gnome.org/show_bug.cgi?id=657202
2012-07-09 13:09:45 +01:00
..
elements tests: add unit test for element re-use using fakesrc 2012-07-03 19:15:25 +01:00
generic bus: add GDestroyNotify to set_sync_handler() 2012-06-20 12:29:35 +02:00
gst bus, clock: make sure these never have a floating ref 2012-07-09 13:09:45 +01:00
libs check: gstcontroller.h doesn't exist anymore 2012-07-06 12:48:44 +02:00
pipelines tests: port pipeline/seek test to 0.11 2012-03-08 20:08:20 +00:00
.gitignore tests/check/.cvsignore: Ignore test-registry.xml as well. 2007-01-09 14:38:11 +00:00
Makefile.am check: New unit test for GstQueueArray 2012-07-04 17:46:54 +02:00