[gst-devel] gst-python: Problem emiting signals from Python

Martin Soto soto at informatik.uni-kl.de
Sat Nov 20 12:32:04 CET 2004


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_STRUCT_OFFSET (DVDBlockSrcClass, queue_event),
        NULL, NULL,
        1, GST_TYPE_EVENT);

i.e. it receives a GstEvent and returns void. I try to emit it using a
line like

        self.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

am I missing something?

M. S.

More information about the gstreamer-devel mailing list