<p dir="ltr">Sorry, there is copy-paste error in QGlib::connect, it should be QGlib::connect(q, "overrun", this, &MediaEngine::onSignal, QGlib::PassSender);<br>
But this does not fix the problem.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On 22 Sep 2016 22:04, "Jani Koskimaa" <<a href="mailto:jani.koskimaa@gmail.com">jani.koskimaa@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I am trying to add signal handler to queue signal overrun. I assumed that this should work (<a href="https://cgit.freedesktop.org/gstreamer/qt-gstreamer/tree/tests/auto/signalstest.cpp" target="_blank">https://cgit.freedesktop.org/<wbr>gstreamer/qt-gstreamer/tree/<wbr>tests/auto/signalstest.cpp</a>) but no luck. What is wrong?<br><br>// signal handler<br>void MediaEngine::onSignal(const QGst::ObjectPtr &obj, const QGst::ObjectPtr &parentObj)<br>{<br>    qDebug() << "jiihaa";<br>}<br><br><br></div>// connecting signal<br>QGlib::connect(q, "overrun", this, &onSignal, QGlib::PassSender);<br><div><br><br></div><div>Application output:<br>

<p style="margin:0px;text-indent:0px"><span style="color:rgb(0,0,0)">Error during invocation of closure connected to signal "overrun" from object "(GstQueue) q" : "The signal provides less arguments than what the closure expects"</span></p><br></div><div><br><br></div></div>
</blockquote></div></div>