AW: Seems like set callbacks unsuccessful

Erickson.LU ericksonlushan at gmail.com
Thu Apr 19 00:56:34 UTC 2018


Appreciate your reply, in the official they use signal but i used callback.
Of course, they are different. But, the problem is the callback function has
never been called. I use breakpoint and g_print checked that. 
And when i use *pipeline_sink = gst_parse_launch (descr, &error); * They all
went well. 

And there is *NewSampleCallback* and *NewPrerollCallback*.
GstFlowReturn NewSampleCallback(GstAppSink* appsink, gpointer user_data)
{
    ReceiveNewSample();
    return GST_FLOW_OK;
}

GstFlowReturn NewPrerollCallback(GstAppSink* appsink, gpointer user_data)
{
    GstSample* sample = gst_app_sink_pull_preroll(appsink);
    gst_sample_unref(sample);
    return GST_FLOW_OK;
}
Thanks again 





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list