From: Wim Taymans Date: Mon, 15 Oct 2012 11:59:50 +0000 (+0200) Subject: pwg: small tweaks to negotiation X-Git-Tag: 1.0.2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92a44a6e322693dd27635661c031c9d21b36b92d;p=platform%2Fupstream%2Fgstreamer.git pwg: small tweaks to negotiation --- diff --git a/docs/pwg/advanced-negotiation.xml b/docs/pwg/advanced-negotiation.xml index 7cc7fd8..bc0ecbb 100644 --- a/docs/pwg/advanced-negotiation.xml +++ b/docs/pwg/advanced-negotiation.xml @@ -317,7 +317,9 @@ gst_my_filter_sink_event (GstPad *pad, If the element prefers to operate in passthrough mode, check - if downstream accepts the caps with the ACCEPT_CAPS query. + if downstream accepts the caps with the ACCEPT_CAPS query. If it + does, we can complete negotiation and we can operate in + passthrough mode. @@ -334,7 +336,9 @@ gst_my_filter_sink_event (GstPad *pad, Select from the downstream list the first caps that you can - transform to and set this as the output caps. + transform to and set this as the output caps. You might have to + fixate the caps to some reasonable defaults to construct + fixed caps. @@ -444,12 +448,6 @@ gst_my_filter_chain (GstPad *pad, - - Pull-mode Caps negotiation - - - - Upstream caps (re)negotiation @@ -489,13 +487,17 @@ gst_my_filter_chain (GstPad *pad, Elements that operate in transform negotiation according to pass the RECONFIGURE - event upstream. + event upstream. Because these elements simply do a fixed transform + based on the upstream caps, they need to send the event upstream + so that it can select a new format. Elements that operate in fixed negotiation () drop the RECONFIGURE event. + These elements can't reconfigure and their output caps don't depend + on the upstream caps so the event can be dropped. @@ -580,6 +582,15 @@ gst_my_filter_query (GstPad *pad, GstObject * parent, GstQuery * query) } ]]> + + + + Pull-mode Caps negotiation + + WRITEME, the mechanism of pull-mode negotiation is not yet fully + understood. + + Using all the knowledge you've acquired by reading this chapter, you should be able to write an element that does correct caps negotiation.