libs/gst/controller/: API: gst_controller_suggest_next_sync(), gst_object_suggest_nex...
authorSebastian Dröge <slomo@circular-chaos.org>
Thu, 17 May 2007 17:37:58 +0000 (17:37 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Thu, 17 May 2007 17:37:58 +0000 (17:37 +0000)
commit82543e317fd5b2f255b90e4e620e731f8edfba7e
treee2faf6b1346b1d51c558d644dd70c336f41dc02e
parent3b7871d9931f18143fd925be858e883b6e8c0358
libs/gst/controller/: API: gst_controller_suggest_next_sync(), gst_object_suggest_next_sync()

Original commit message from CVS:
reviewed by: Stefan Kost <ensonic@users.sf.net>
* libs/gst/controller/gstcontroller.c:
(gst_controller_suggest_next_sync), (gst_controller_sync_values),
(_gst_controller_get_property), (_gst_controller_set_property),
(_gst_controller_init), (_gst_controller_class_init):
* libs/gst/controller/gstcontroller.h:
* libs/gst/controller/gsthelper.c: (gst_object_suggest_next_sync),
(gst_object_get_control_rate), (gst_object_set_control_rate):
API: gst_controller_suggest_next_sync(), gst_object_suggest_next_sync()
Add API that provides sync suggestion timestamps for elements that
call gst_object_sync_values() from which those elements can subdivide
their processing loop to get the best results for the controlled
properties. For now it just suggests last_sync + control_rate as
new timestamp but this will be improved in the future.
While doing that change the control-rate property to a GstClockTime
from guint and change it's meaning from samples to nanoseconds as
the GstController doesn't know anything about sampling rate. Strictly
speaking this breaks ABI but as the control-rate property didn't do
anything in the past and as such couldn't be used this should be no
problem.
ChangeLog
libs/gst/controller/gstcontroller.c
libs/gst/controller/gstcontroller.h
libs/gst/controller/gsthelper.c