diff options
author | Edward Hervey <bilboed@bilboed.com> | 2005-11-21 15:38:03 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2005-11-21 15:38:03 +0000 |
commit | dfa96f5a01ac1fcb06ee98929c699e1ea6a92671 (patch) | |
tree | 78c986b507a3542e078705379c663df94fafa35d /gst/pygstvalue.c | |
parent | 19bed1cfaf643baa253cf3c2997950b6b9d32c1d (diff) |
gst/: API updates
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
API updates
* gst/pygstvalue.c: (pygst_value_as_pyobject),
(pygst_value_from_pyobject):
Fixes for gst_value_array and GST_FOURCC_FORMAT
Diffstat (limited to 'gst/pygstvalue.c')
-rw-r--r-- | gst/pygstvalue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/pygstvalue.c b/gst/pygstvalue.c index c15bb31..b2a7397 100644 --- a/gst/pygstvalue.c +++ b/gst/pygstvalue.c @@ -51,7 +51,7 @@ pygst_value_as_pyobject(const GValue *value, gboolean copy_boxed) PyErr_Clear(); if (GST_VALUE_HOLDS_FOURCC (value)) { gchar str[5]; - g_snprintf (str, 5, GST_FOURCC_FORMAT, + g_snprintf (str, 5, "%"GST_FOURCC_FORMAT, GST_FOURCC_ARGS (gst_value_get_fourcc (value))); ret = PyObject_Call (gstfourcc_class, Py_BuildValue ("(s)", str), NULL); } else if (GST_VALUE_HOLDS_INT_RANGE (value)) { @@ -79,12 +79,12 @@ pygst_value_as_pyobject(const GValue *value, gboolean copy_boxed) } } else if (GST_VALUE_HOLDS_ARRAY (value)) { int i, len; - len = gst_value_list_get_size (value); + len = gst_value_array_get_size (value); ret = PyTuple_New (len); for (i=0; i<len; i++) { PyTuple_SetItem (ret, i, pygst_value_as_pyobject - (gst_value_list_get_value (value, i), copy_boxed)); + (gst_value_array_get_value (value, i), copy_boxed)); } } else if (GST_VALUE_HOLDS_FRACTION (value)) { ret = PyObject_Call @@ -242,7 +242,7 @@ pygst_value_from_pyobject (GValue *value, PyObject *obj) g_value_unset (&new); return -1; } - gst_value_list_append_value (value, &new); + gst_value_array_append_value (value, &new); g_value_unset (&new); } return 0; |