basesink: clean up event handling
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 2 Dec 2011 21:20:08 +0000 (22:20 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 2 Dec 2011 21:20:08 +0000 (22:20 +0100)
commit0e38f0dad0a1c01c6b5ebfd4b08c5f7d1b94c520
tree68c750342ed90b4d51e872157e4cf8d3a33a7a4b
parentb6335d9505c36cdc84d6736ffbd2d704a7d78da1
basesink: clean up event handling

Add new wait_eos vmethod to wait for the eos timeout before posting the EOS
message on the bus.
Add default event handler. Move the default event actions in there. Call the
event vmethod from the pad event handler. Subclasses are now supposed to chain
up to the parent event handler or unref the event and do their own thing.
Avoid passing unused parameters to functions.
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesink.h
plugins/elements/gstfakesink.c
plugins/elements/gstfdsink.c
plugins/elements/gstfilesink.c