gst_pad_link() hangs when called from "pad-added" handler of togglerecord
The issue occurs if I request a sink pad of toggle record like this
new_sink_pad = gst_element_get_request_pad(togglerecord, "sink_%u");
g_signal_connect(pause, "pad-added", G_CALLBACK(pad_added_cb), pad_to_link);
Now I want to link newly created pad and pad_to_link
in the "pad-added" handler function.
void pad_added_cb(GstElement *pause, GstPad *new_pad, GstPad *next_pad)
{
...
gst_pad_link(new_pad, next_pad);
...
}
But gst_pad_link()
never returns.
Also backtrace is provided.