2005-06-17 10:59:47 +00:00
|
|
|
/* -*- Mode: C; ; c-file-style: "python" -*- */
|
|
|
|
/* gst-python
|
|
|
|
* Copyright (C) 2005 Edward Hervey
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* Author: Johan Dahlin <johan@gnome.org>
|
|
|
|
*/
|
gst/: Added GError wrapping,
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Added GError wrapping,
Removed data field from Buffer,
Added virtual methods to object
Updated to latest API
* gst/gst.override:
wrapped gst_plugin_get_feature_list(), gst_uri_handler_get_protocols(),
gst_registry_pool_list()
* gst/gstbuffer.override:
gst.Buffer() works
get/setters fixed
wrapped gst_buffer_stamp()
* gst/gstbus.override:
wrapped gst_bus_set_sync_handler() and gst_bus_add_watch()
* gst/gstelement.override:
wrapped gst_element_send_event(), gst_element_factory_get_pad_templates()
gst_element_query_convert(), gst_element_get_query_types()
* gst/gstevent.override:
wrapped gst_event_discont_get_value()
* gst/gstmessage.override:
wrapped gst_message_parse_state_changed(), gst_message_parse_error(),
gst_message_parse_warning(), gst_message_parse_tag()
* gst/gstmodule.c:
Added registration of new fundamental type with pygtk
* gst/gstpad.override:
wrapped gst_pad_query(), gst_pad_[add|remove]_[data|event|buffer]_probe(),
gst_pad_query_position(), gst_pad_query_convert()
* gst/gstquery.override:
wrapped gst_query_parse_position(), gst_query_parse_convert(),
gst_query_parse_seeking_query(), gst_query_parse_seeking_reponse()
* gst/pygstminiobject.c:
fixes
* gst/Makefile.am:
added gstbus.override, gstmessage.override, gstquery.override
* testsuite/test_buffer.py:
* testsuite/test_element.py:
* testsuite/test_event.py:
* testsuite/test_pipeline.py:
Updating testsuites
2005-07-12 09:45:58 +00:00
|
|
|
%%
|
2005-08-01 09:59:55 +00:00
|
|
|
override gst_event_get_structure noargs
|
|
|
|
static PyObject *
|
|
|
|
_wrap_gst_event_get_structure(PyGstMiniObject *self)
|
|
|
|
{
|
|
|
|
GstStructure *ret;
|
|
|
|
|
|
|
|
ret = (GstStructure *) gst_event_get_structure(GST_EVENT(self->obj));
|
|
|
|
/* pyg_boxed_new handles NULL checking */
|
|
|
|
return pyg_boxed_new(GST_TYPE_STRUCTURE, ret, TRUE, TRUE);
|
|
|
|
}
|
2005-10-06 14:43:15 +00:00
|
|
|
|
|
|
|
%%
|
|
|
|
override-slot GstEvent.tp_repr
|
|
|
|
static PyObject *
|
|
|
|
_wrap_gst_event_tp_repr (PyGObject *self)
|
|
|
|
{
|
|
|
|
char *buf;
|
|
|
|
PyObject *retval;
|
|
|
|
GstEvent *event;
|
|
|
|
|
|
|
|
event = GST_EVENT(self->obj);
|
|
|
|
|
|
|
|
buf = g_strdup_printf ("<GstEvent (%s) at %lx>",
|
|
|
|
gst_event_type_get_name (event->type), (long) self->obj);
|
|
|
|
|
|
|
|
retval = PyString_FromString(buf);
|
|
|
|
g_free(buf);
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|