mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
2e23effc15
Original commit message from CVS: * examples/gst/play.py: * gst/gst-types.defs: * gst/gst.override: * testsuite/Makefile.am: * testsuite/common.py: * testsuite/event.py: * testsuite/test_event.py: Use gst.element_factory_make in play example Use boxed instead of pointer for gst.Event, it was such an ugly hack. Ref the event when sending using gst.element_send_event. Add a bunch of testcases (and a C module), renamed event to test_event.py
25 lines
563 B
C
25 lines
563 B
C
#include "test-object.h"
|
|
|
|
enum
|
|
{
|
|
/* FILL ME */
|
|
SIGNAL_EVENT,
|
|
LAST_SIGNAL
|
|
};
|
|
|
|
|
|
static guint test_object_signals[LAST_SIGNAL] = { 0 };
|
|
|
|
G_DEFINE_TYPE(TestObject, test_object, G_TYPE_OBJECT);
|
|
|
|
static void test_object_init (TestObject *self) {}
|
|
static void test_object_class_init (TestObjectClass *klass)
|
|
{
|
|
test_object_signals[SIGNAL_EVENT] =
|
|
g_signal_new ("event", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
|
G_STRUCT_OFFSET (TestObjectClass, event), NULL, NULL,
|
|
g_cclosure_marshal_VOID__BOXED, G_TYPE_NONE, 1,
|
|
GST_TYPE_EVENT);
|
|
|
|
}
|
|
|