Custom plugin with two srcpads
Marcin Kolny
marcin.kolny at gmail.com
Thu Aug 29 01:24:35 PDT 2013
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:
static GstFlowReturn
gst_my_filter_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
{
GstMyFilter *filter;
filter = GST_MYFILTER (parent);
gst_buffer_ref(buf);
gst_pad_push(filter->srcpad2, buf);
return gst_pad_push (filter->srcpad1, buf);
}
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:
gst_pad_push(filter->srcpad2, buf);
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.
I was looking at tee's code, and I can't see nothing special there. What is
wrong with my plugin?
Thanks for help
Best regards,
Marcin Kolny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130829/325564e0/attachment-0001.html>
More information about the gstreamer-devel
mailing list