[gstreamer-bugs] [Bug 159067] New: Parameter type conversion fails when emiting signal from Python
bugzilla-daemon at bugzilla.gnome.org
bugzilla-daemon at bugzilla.gnome.org
Mon Nov 22 06:38:26 PST 2004
http://bugzilla.gnome.org/show_bug.cgi?id=159067
GStreamer | gst-python | Ver: HEAD CVS
Summary: Parameter type conversion fails when emiting signal from
Python
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-python
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: soto at informatik.uni-kl.de
QAContact: gstreamer-bugs at lists.sourceforge.net
I'm observing a weird problem while trying to emit a signal defined by a
GstElement from a Python script. The signal is defined as follows:
dvdblocksrc_signals[QUEUE_EVENT_SIGNAL] =
g_signal_new ("queue-event",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_ACTION,
G_STRUCT_OFFSET (DVDBlockSrcClass, queue_event),
NULL, NULL,
gst_marshal_VOID__POINTER,
G_TYPE_NONE,
1, GST_TYPE_EVENT);
i.e. it receives a GstEvent and returns void. I try to emit it using a
line like
element.emit('queue-event', someEvent);
The result is an exception with the following error message:
TypeError: could not convert type gst.Event to GstEvent required for parameter 0
I tried modifying the signal definition to receive a GstData value, but it
failed with a similar error message.
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.
More information about the Gstreamer-bugs
mailing list