Expected Gst.Event, but got gi.repository.Gst.Event

pablo platt pablo.platt at gmail.com
Mon Nov 23 01:35:10 PST 2015


Hi,

I have a python3 gstreamer 1.6.1 app that mixes several audio and video
streams in real time and save to mp4.
The script run for about 1 hour.

To stop the app I'm sending EOS to the mp4mux audio and video pads:
pad.send_event(Gst.Event.new_eos())

The issue is hard to reproduce.
Most of the times it run fine but sometimes I'm getting an error when
sending EOS to the pads:
TypeError: argument event: Expected Gst.Event, but got
gi.repository.Gst.Event

The code that sends the error:
grep -R "Expected" ./
./gi/pygi-struct-marshal.c:        PyErr_Format (PyExc_TypeError, "argument
%s: Expected %s, but got %s%s%s",
https://github.com/GNOME/pygobject/blob/master/gi/pygi-struct-marshal.c#L306

Why it work most of the times and only sometimes fail?
How can I debug this issue?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151123/a55cb198/attachment.html>


More information about the gstreamer-devel mailing list