From 2cc55af04626e3ba10070a12933e755c68242ce6 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 8 Oct 2014 15:37:37 +0200 Subject: [PATCH] docs: pwg: fix typo in 'Dynamic negotiation' section The point of this example is to show how to set caps on the source pad once it has been set on the sink pad. So, in passthrough mode, the caps is just copied to the source pad. https://bugzilla.gnome.org/show_bug.cgi?id=738153 --- docs/pwg/advanced-negotiation.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pwg/advanced-negotiation.xml b/docs/pwg/advanced-negotiation.xml index db9b8cd643..16591d3013 100644 --- a/docs/pwg/advanced-negotiation.xml +++ b/docs/pwg/advanced-negotiation.xml @@ -370,7 +370,7 @@ static gboolean gst_my_filter_setcaps (GstMyFilter *filter, GstCaps *caps) { - if (gst_pad_set_caps (filter->sinkpad, caps)) { + if (gst_pad_set_caps (filter->srcpad, caps)) { filter->passthrough = TRUE; } else { GstCaps *othercaps, *newcaps;