<div dir="ltr"><div><div>Hi,<br><br></div>I have a python3 gstreamer 1.6.1 app that mixes several audio and video streams in real time and save to mp4.<br>The script run for about 1 hour.<br><br></div>To stop the app I'm sending EOS to the mp4mux audio and video pads:<br>pad.send_event(Gst.Event.new_eos())<br><br><div><div><div>The issue is hard to reproduce.<br>Most of the times it run fine but sometimes I'm getting an error when sending EOS to the pads:<br>TypeError: argument event: Expected Gst.Event, but got gi.repository.Gst.Event<br><br>The code that sends the error:<br>grep -R "Expected" ./<br>./gi/pygi-struct-marshal.c:        PyErr_Format (PyExc_TypeError, "argument %s: Expected %s, but got %s%s%s",<br><a href="https://github.com/GNOME/pygobject/blob/master/gi/pygi-struct-marshal.c#L306" target="_blank">https://github.com/GNOME/pygobject/blob/master/gi/pygi-struct-marshal.c#L306</a><br><br></div><div>Why it work most of the times and only sometimes fail?<br></div><div>How can I debug this issue?<br><br></div><div>Thanks<br></div><div><br></div></div></div></div>