~vcs-imports/python-gst/main

« back to all changes in this revision

Viewing changes to gst/gstpad.override

  • Committer: bilboed
  • Date: 2006-07-03 09:31:25 UTC
  • Revision ID: vcs-imports@canonical.com-20060703093125-f9a4f47b6612a76c
* gst/gstmessage.override:
State change is a list and not a tuple
* gst/gstpad.override:
query_position() got busted in previous commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
690
690
    return ret;
691
691
}
692
692
%%
 
693
override gst_pad_query_duration args
 
694
static PyObject *
 
695
_wrap_gst_pad_query_duration (PyGObject *self, PyObject *args)
 
696
{
 
697
    gint64    cur;
 
698
    gint    format;
 
699
    PyObject    *pformat;
 
700
    PyObject    *ret;
 
701
 
 
702
    pformat = (PyObject*)PyTuple_GetItem(args, 0);
 
703
    if (pyg_enum_get_value (GST_TYPE_FORMAT, pformat, &format)) {
 
704
        PyErr_SetString(PyExc_TypeError, "argument should be a GstFormat");
 
705
        return NULL;
 
706
    }
 
707
 
 
708
    if ((gst_pad_query_duration(GST_PAD (self->obj), (GstFormat*) &format, &cur))) {
 
709
        ret = Py_BuildValue("(LO)", cur,
 
710
                            pyg_enum_from_gtype (GST_TYPE_FORMAT, format));
 
711
    } else {
 
712
        Py_INCREF(Py_None);
 
713
        ret = Py_None;
 
714
    }
 
715
 
 
716
    return ret;
 
717
}
 
718
%%
693
719
override gst_pad_query_convert kwargs
694
720
static PyObject *
695
721
_wrap_gst_pad_query_convert (PyGObject *self, PyObject *args, PyObject *kwargs)