pad: keep the parent alive when requested
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 16 Nov 2011 11:08:22 +0000 (12:08 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 16 Nov 2011 11:08:22 +0000 (12:08 +0100)
commitfe3af1d67bb0c71eb624da7fa6f353b54e02d279
tree59d4107dfd8fc1d604f9abdf37073f191f887864
parenta641b0ce39270810c3f31bd76382a4d65483cdfb
pad: keep the parent alive when requested

Add a new pad flag NEED_PARENT that ensures that the parent of a pad is
reffed and not NULL when the event, query and internal links functions
are called.
When a pad is added to an element automatically make sure the NEED_PARENT flag
is enabled.
gst/gstelement.c
gst/gstpad.c
gst/gstpad.h