summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2005-11-23 09:53:52 +0000
committerEdward Hervey <bilboed@bilboed.com>2005-11-23 09:53:52 +0000
commit714df8342afaed018522e153ed187e339811ec29 (patch)
treeefa9baaa8059d2098834aacfe831f6c03a8d9ed6
parent96256ac65cbf835a11a0a92fd3b620a559bf377e (diff)
gst/: API updates
Original commit message from CVS: * gst/gst-types.defs: * gst/gst.defs: API updates
-rw-r--r--ChangeLog6
-rw-r--r--gst/gst-types.defs1
-rw-r--r--gst/gst.defs29
3 files changed, 32 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 66c335d..9cc6c9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-11-22 Edward Hervey <edward@fluendo.com>
+ * gst/gst-types.defs:
+ * gst/gst.defs:
+ API updates
+
+2005-11-22 Edward Hervey <edward@fluendo.com>
+
* gst/pygstvalue.c: (pygst_value_as_pyobject),
(pygst_value_init_for_pyobject), (pygst_value_from_pyobject),
(pygst_value_init):
diff --git a/gst/gst-types.defs b/gst/gst-types.defs
index 89de863..ccd3935 100644
--- a/gst/gst-types.defs
+++ b/gst/gst-types.defs
@@ -375,6 +375,7 @@
'("can-do-periodic-sync" "GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC")
'("can-do-periodic-async" "GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC")
'("can-set-resolution" "GST_CLOCK_FLAG_CAN_SET_RESOLUTION")
+ '("can-set-master" "GST_CLOCK_FLAG_CAN_SET_MASTER")
'("last" "GST_CLOCK_FLAG_LAST")
)
)
diff --git a/gst/gst.defs b/gst/gst.defs
index e303270..8565bd7 100644
--- a/gst/gst.defs
+++ b/gst/gst.defs
@@ -744,7 +744,7 @@
(define-method set_master
(of-object "GstClock")
(c-name "gst_clock_set_master")
- (return-type "none")
+ (return-type "gboolean")
(parameters
'("GstClock*" "master")
)
@@ -756,6 +756,17 @@
(return-type "GstClock*")
)
+(define-method add_observation
+ (of-object "GstClock")
+ (c-name "gst_clock_add_observation")
+ (return-type "gboolean")
+ (parameters
+ '("GstClockTime" "slave")
+ '("GstClockTime" "master")
+ '("gdouble*" "r_squared")
+ )
+)
+
(define-method get_internal_time
(of-object "GstClock")
(c-name "gst_clock_get_internal_time")
@@ -949,7 +960,7 @@
(define-method set_clock
(of-object "GstElement")
(c-name "gst_element_set_clock")
- (return-type "none")
+ (return-type "gboolean")
(parameters
'("GstClock*" "clock")
)
@@ -1284,7 +1295,7 @@
(define-virtual set_clock
(of-object "GstElement")
- (return-type "none")
+ (return-type "gboolean")
(parameters
'("GstClock*" "clock")
)
@@ -3932,7 +3943,7 @@
(define-method set_clock
(of-object "GstPipeline")
(c-name "gst_pipeline_set_clock")
- (return-type "none")
+ (return-type "gboolean")
(parameters
'("GstClock*" "clock")
)
@@ -6058,6 +6069,16 @@
)
)
+(define-function util_clock_time_scale
+ (c-name "gst_util_clock_time_scale")
+ (return-type "GstClockTime")
+ (parameters
+ '("GstClockTime" "val")
+ '("gint" "num")
+ '("gint" "denom")
+ )
+)
+
(define-function print_pad_caps
(c-name "gst_print_pad_caps")
(return-type "none")