if (rv)
GST_PAD_DO_EVENT_SIGNALS (pad)++;
+ GST_PAD_DO_BUFFER_SIGNALS (pad)++;
+ GST_DEBUG ("adding event probe to pad %s:%s, now %d probes",
+ GST_DEBUG_PAD_NAME (pad), GST_PAD_DO_BUFFER_SIGNALS (pad));
GST_OBJECT_UNLOCK (pad);
Py_DECREF(myargs);
PyList_SetItem(ret, 1, Py_None);
} else {
PyList_SetItem(ret, 1, pygstminiobject_new(GST_MINI_OBJECT(buf)));
+ /* Bring down the reference count, since we are meant to be the only
+ * one holding a reference to the newly created buffer. */
+ gst_buffer_unref (buf);
}
return ret;
}
PyList_SetItem(ret, 1, Py_None);
} else {
PyList_SetItem(ret, 1, pygstminiobject_new(GST_MINI_OBJECT(buf)));
+ /* Bring down the reference count, since we are meant to be the only
+ * one holding a reference to the newly created buffer. */
+ gst_buffer_unref (buf);
}
return ret;
}
PyList_SetItem(ret, 1, Py_None);
} else {
PyList_SetItem(ret, 1, pygstminiobject_new(GST_MINI_OBJECT(buf)));
+ /* Bring down the reference count, since we are meant to be the only
+ * one holding a reference to the newly created buffer. */
+ gst_buffer_unref (buf);
}
return ret;
}
PyList_SetItem(ret, 1, Py_None);
} else {
PyList_SetItem(ret, 1, pygstminiobject_new(GST_MINI_OBJECT(buf)));
+ /* Bring down the reference count, since we are meant to be the only
+ * one holding a reference to the newly created buffer. */
+ gst_buffer_unref (buf);
}
return ret;
}