gstreamer/tests/check/gst
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
..
.gitignore tests: add new unit test binaries to .gitignore 2012-04-02 23:29:24 +01:00
capslist.h tests: fix old caps in tests now that core warns 2012-03-01 17:41:56 +01:00
gst.c checks: run tests calling gst_deinit() last so things work with CK_FORK=no 2010-07-03 14:11:38 +01:00
gstabi.c tests: refix the tests (missing #endif) 2011-02-24 16:20:01 +02:00
gstatomicqueue.c tests: add minimal test for GstAtomicQueue 2011-09-30 14:50:51 +01:00
gstbin.c tests: fix bus leak in GstBin test_state_change_skip test 2012-06-27 20:52:52 +01:00
gstbuffer.c tests: gstbuffer: extend buffer copy test 2012-07-05 11:19:15 +02:00
gstbufferlist.c bufferlist: clean up API 2011-11-02 08:59:43 +01:00
gstbus.c tests: increase bus test timeout 2012-02-27 11:46:08 +01:00
gstcaps.c caps: make _normalize take ownership of input 2012-03-12 12:21:34 +01:00
gstchildproxy.c childproxy: use GstChildProxy instead of GObject on the public api 2012-06-11 18:25:18 +02:00
gstclock.c clock: use the new gst_clock_id_wait_async_full. 2010-07-06 10:46:42 +02:00
gstcontroller.c controller: add a finalizer for the test controlbindings 2012-04-05 21:17:57 +02:00
gstcpp.cc tests: rebuild one test using cpp 2010-09-22 10:22:40 +03:00
gstdatetime.c tests: make checks for from/to_g_date_time() actually work properly 2012-07-04 10:23:06 +01:00
gstelement.c element: Add test for inheriting metadata/pad templates 2011-04-16 15:59:40 +02:00
gstelementfactory.c elementfactory: make object struct opaque for now 2012-05-19 16:17:12 +01:00
gstevent.c event: add name to sticky_multi events 2012-06-06 12:52:09 +02:00
gstghostpad.c tests: fix old caps in tests now that core warns 2012-03-01 17:41:56 +01:00
gstindex.c gst/gstindex.*: Don't free key strings which we don't own. Fixes crash in gst_index_entry_free() (#522741). 2008-03-17 10:21:59 +00:00
gstinfo.c info: add destroy notify to gst_debug_add_log_function() 2012-06-20 13:28:08 +02:00
gstiterator.c structure: cleanup API 2011-11-02 08:59:44 +01:00
gstmemory.c miniobject: add lock functionality to GstMiniObject 2012-07-05 11:19:16 +02:00
gstmessage.c task: add GDestroyNotify to _new 2012-06-20 10:31:49 +02:00
gstmeta.c meta: add LOCKED flag 2012-04-17 15:55:10 +02:00
gstminiobject.c Merge branch 'master' into 0.11 2011-05-16 16:53:04 +02:00
gstobject.c check: fix object unit test 2010-12-07 15:20:12 +01:00
gstpad.c tests: plug some leaks 2012-04-24 16:01:52 +02:00
gstparamspecs.c tests: Use G_DEFINE_TYPE instead of GST_BOILERPLATE 2011-04-19 11:45:37 +02:00
gstpipeline.c bus, clock: make sure these never have a floating ref 2012-07-09 13:09:45 +01:00
gstplugin.c tools, tests: don't access the GstPluginFeature structure directly 2012-05-19 17:23:43 +01:00
gstpoll.c gst: Fix compiler warnings on mingw-w64 2012-05-09 09:35:35 +02:00
gstpreset.c gst: Change versioning 2012-04-04 14:28:55 +02:00
gstquery.c Revert "query: allow _make_writable on query handlers" 2011-05-17 11:21:41 +02:00
gstregistry.c registry: rename gst_registry_get_default() to gst_registry_get() 2012-01-02 02:22:51 +00:00
gstsegment.c tests: fix useless segment test 2012-02-20 14:42:11 +01:00
gststructure.c tests: fix old caps in tests now that core warns 2012-03-01 17:41:56 +01:00
gstsystemclock.c clock: remove _full version 2012-06-20 09:58:14 +02:00
gsttag.c sample: add compare function for GstSample 2012-06-23 16:59:10 +01:00
gsttagsetter.c gst_tag_list_free -> gst_tag_list_unref 2012-06-05 15:05:07 +01:00
gsttask.c task: add GDestroyNotify to _new 2012-06-20 10:31:49 +02:00
gsttoc.c tests: fix toc unit test build by removing toc query stuff there too 2012-07-05 12:27:14 +01:00
gsttocsetter.c toc: Make structures opaque and clean up function names and fields a bit 2012-07-05 12:29:02 +02:00
gsturi.c uri: there are valid URI protocols with only two letters, like fd:// 2012-07-04 17:39:52 +01:00
gstutils.c check: Add a test for GST_READ_* macros 2012-06-08 14:58:00 +02:00
gstvalue.c tests: add more tests for datetime value serialisation/deserialisation 2012-07-07 23:13:20 +01:00
struct_arm.h interfaces: clean up the use of iface and class/klass 2011-10-21 14:20:40 +02:00
struct_hppa.h interfaces: clean up the use of iface and class/klass 2011-10-21 14:20:40 +02:00
struct_i386.h interfaces: clean up the use of iface and class/klass 2011-10-21 14:20:40 +02:00
struct_ppc32.h interfaces: clean up the use of iface and class/klass 2011-10-21 14:20:40 +02:00
struct_ppc64.h interfaces: clean up the use of iface and class/klass 2011-10-21 14:20:40 +02:00
struct_sparc.h interfaces: clean up the use of iface and class/klass 2011-10-21 14:20:40 +02:00
struct_x86_64.h Merge remote-tracking branch 'origin/master' into 0.11 2011-10-31 14:03:15 +00:00