stop pipeline into a callback funtion.

Alejandro Vázquez vazlup at gmail.com
Wed Sep 16 03:15:11 PDT 2015


Hi All.

I want to know if it is right to modify the status of a pipeline within a
callback.
The application works but I'm not sure if it can cause a problem in the
future.

e.g.

...
GstPad *pad = gst_element_get_static_pad(videoScr, "src");
g_signal_connect(pad, "notify::caps", G_CALLBACK(video_changed), NULL);
...

video_changed
{
...
gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PAUSED);
...
}

Regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150916/45a32120/attachment.html>


More information about the gstreamer-devel mailing list