|
From: Benoit F. <ben...@pu...> - 2006-09-07 15:16:15
|
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
|