clean up object init
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 10 Feb 2012 13:58:13 +0000 (14:58 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 10 Feb 2012 14:02:23 +0000 (15:02 +0100)
commit151d7faca3a643a48e738ae9e2f4be0eab61c47d
tree9c996c9bd63f563c7c0f91937a59c0b13603183d
parent86c15749a48f4262a838bab2d977d2d3225cfd93
clean up object init

Make an _init method where the parent mini-object and other fields are
initialized.
Check that the passed structure doesn't already have a parent.
Use the _new_custom () constructors
gst/gstevent.c
gst/gstmessage.c
gst/gstquery.c