basesink: add simple rate control
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 9 Nov 2012 15:50:50 +0000 (16:50 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 9 Nov 2012 16:01:23 +0000 (17:01 +0100)
commitd8413cd0a2485af215c729f8109b1382f1ea6573
tree576f226aaeef5aa98bfef0d322fd352eacc24dd3
parent718b6b2471cb10ddceadd07a001064e546808d00
basesink: add simple rate control

Add a max-bitrate property that will slightly delay rendering of buffers if it
would exceed the maximum defined bitrate. This can be used to do
rate control on network sinks, for example.

API: GstBaseSink::max-bitrate
API: gst_base_sink_set_max_bitrate()
API: gst_base_sink_get_max_bitrate()
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesink.h