<div dir="ltr"><div>Hi, I'm trying to write my own plugin with one sink and two sources (something like tee). So my chain function looks like this:<br><br>static GstFlowReturn<br>gst_my_filter_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)<br>
{<br>  GstMyFilter *filter;<br><br>  filter = GST_MYFILTER (parent);<br><br>  gst_buffer_ref(buf);<br>  gst_pad_push(filter->srcpad2, buf);<br>  return gst_pad_push (filter->srcpad1, buf);<br>}<br><br>I know, that this code is meaningless, but it's the simple code snippet, which doesn't work for me. I saw in debugger, that a thread hangs up on a line:<br>
gst_pad_push(filter->srcpad2, buf);<br>When I didn't connect any element to a srcpad2 (I linked only srcpad1), chain function didn't suspend, problem occurs, when two src pads are connected.<br><br>I was looking at tee's code, and I can't see nothing special there. What is wrong with my plugin?<br>
Thanks for help<br><br></div>Best regards,<br>Marcin Kolny<br></div>