QGlib::connect to signal fail

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

QGlib::connect to signal fail

Jani Koskimaa
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"





_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: QGlib::connect to signal fail

Jani Koskimaa

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" <[hidden email]> 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"





_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel