QGlib::connect to signal fail

Jani Koskimaa jani.koskimaa at gmail.com
Thu Sep 22 19:37:29 UTC 2016


Sorry, there is copy-paste error in QGlib::connect, it should be
QGlib::connect(q, "overrun", this, &MediaEngine::onSignal,
QGlib::PassSender);
But this does not fix the problem.

On 22 Sep 2016 22:04, "Jani Koskimaa" <jani.koskimaa at gmail.com> wrote:

> I am trying to add signal handler to queue signal overrun. I assumed that
> this should work (https://cgit.freedesktop.org/
> gstreamer/qt-gstreamer/tree/tests/auto/signalstest.cpp) but no luck. What
> is wrong?
>
> // signal handler
> void MediaEngine::onSignal(const QGst::ObjectPtr &obj, const
> QGst::ObjectPtr &parentObj)
> {
>     qDebug() << "jiihaa";
> }
>
>
> // connecting signal
> QGlib::connect(q, "overrun", this, &onSignal, QGlib::PassSender);
>
>
> Application output:
>
> Error during invocation of closure connected to signal "overrun" from
> object "(GstQueue) q" : "The signal provides less arguments than what the
> closure expects"
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160922/b7bfcc4e/attachment.html>


More information about the gstreamer-devel mailing list