mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
gstreamer/common.override: Attempt to handle GstBuffer vs GstData better
Original commit message from CVS: * gstreamer/common.override: Attempt to handle GstBuffer vs GstData better
This commit is contained in:
parent
ad4e6fd770
commit
f44fd3f602
3 changed files with 29 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-02-24 David I. Lehn <dlehn@users.sourceforge.net>
|
||||
|
||||
* gstreamer/common.override:
|
||||
Attempt to handle GstBuffer vs GstData better
|
||||
|
||||
2004-02-24 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* gstreamer/gstreamer.defs: rename all functions, remove
|
||||
|
|
|
@ -132,7 +132,7 @@ _wrap_gst_pad_set_link_function (PyGObject *self,
|
|||
override gst_pad_set_chain_function kwargs
|
||||
|
||||
static void
|
||||
call_chain_function(GstPad *pad, GstBuffer *buf)
|
||||
call_chain_function(GstPad *pad, GstData *data)
|
||||
{
|
||||
PyObject *function;
|
||||
|
||||
|
@ -140,10 +140,17 @@ call_chain_function(GstPad *pad, GstBuffer *buf)
|
|||
|
||||
pyg_block_threads();
|
||||
|
||||
PyObject_CallFunction (function,
|
||||
"OO",
|
||||
pad_private(pad)->pad,
|
||||
pyg_boxed_new(GST_TYPE_BUFFER, buf, TRUE, TRUE));
|
||||
if (GST_IS_BUFFER(data)) {
|
||||
PyObject_CallFunction (function,
|
||||
"OO",
|
||||
pad_private(pad)->pad,
|
||||
pyg_boxed_new(GST_TYPE_BUFFER, data, TRUE, TRUE));
|
||||
} else if (GST_IS_EVENT(data)) {
|
||||
PyObject_CallFunction (function,
|
||||
"OO",
|
||||
pad_private(pad)->pad,
|
||||
pyg_boxed_new(GST_TYPE_EVENT, data, TRUE, TRUE));
|
||||
}
|
||||
|
||||
if (PyErr_Occurred ()) {
|
||||
PyErr_Print ();
|
||||
|
|
|
@ -132,7 +132,7 @@ _wrap_gst_pad_set_link_function (PyGObject *self,
|
|||
override gst_pad_set_chain_function kwargs
|
||||
|
||||
static void
|
||||
call_chain_function(GstPad *pad, GstBuffer *buf)
|
||||
call_chain_function(GstPad *pad, GstData *data)
|
||||
{
|
||||
PyObject *function;
|
||||
|
||||
|
@ -140,10 +140,17 @@ call_chain_function(GstPad *pad, GstBuffer *buf)
|
|||
|
||||
pyg_block_threads();
|
||||
|
||||
PyObject_CallFunction (function,
|
||||
"OO",
|
||||
pad_private(pad)->pad,
|
||||
pyg_boxed_new(GST_TYPE_BUFFER, buf, TRUE, TRUE));
|
||||
if (GST_IS_BUFFER(data)) {
|
||||
PyObject_CallFunction (function,
|
||||
"OO",
|
||||
pad_private(pad)->pad,
|
||||
pyg_boxed_new(GST_TYPE_BUFFER, data, TRUE, TRUE));
|
||||
} else if (GST_IS_EVENT(data)) {
|
||||
PyObject_CallFunction (function,
|
||||
"OO",
|
||||
pad_private(pad)->pad,
|
||||
pyg_boxed_new(GST_TYPE_EVENT, data, TRUE, TRUE));
|
||||
}
|
||||
|
||||
if (PyErr_Occurred ()) {
|
||||
PyErr_Print ();
|
||||
|
|
Loading…
Reference in a new issue