[gst-devel] caps negotiation
Benoit Fouet
benoit.fouet at purplelabs.com
Thu Sep 7 17:15:56 CEST 2006
Hi,
I have a question raising while reading the doc GStreamer Plugin
Writer's Guide.
In chapter 10, the example of the element which can convert between
samplerates puzzles me:
static gboolean
gst_my_filter_setcaps (GstPad *pad,
GstCaps *caps)
{
GstMyFilter *filter = GST_MY_FILTER (GST_OBJECT_PARENT (pad));
if (gst_pad_set_caps (filter->sinkpad, caps)) {
filter->passthrough = TRUE;
I wonder why we try to set caps on sinkpad.
If someone can help me understand this, because i feel i'm missing
something quite crucial there...
Thanks,
-- Ben
More information about the gstreamer-devel
mailing list