design/decodebin: add missing markup to gst keywords

Fix grammar/spelling nits and drop trailing whitespace while at it.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2016-12-20 23:59:38 -08:00
parent 75d5a71617
commit 6c82899fa5

View file

@ -22,8 +22,8 @@
The goal is to reach 'target' caps (by default raw media).
This is done by using the GstCaps of a source pad and finding the
available demuxers/decoders GstElement that can be linked to that pad.
This is done by using the `GstCaps` of a source pad and finding the
available demuxers/decoders `GstElement` that can be linked to that pad.
The process starts with the source pad of typefind and stops when no
more non-target caps are left. It is commonly done while pre-rolling,
@ -32,12 +32,12 @@ but can also happen whenever a new pad appears on any element.
Once a target caps has been found, that pad is ghosted and the
'pad-added' signal is emitted.
If no compatible elements can be found for a GstCaps, the pad is ghosted
If no compatible elements can be found for a `GstCaps`, the pad is ghosted
and the 'unknown-type' signal is emitted.
### Assisted auto-plugging
When starting the auto-plugging process for a given GstCaps, two signals
When starting the auto-plugging process for a given `GstCaps`, two signals
are emitted in the following way in order to allow the application/user
to assist or fine-tune the process.
@ -45,9 +45,9 @@ to assist or fine-tune the process.
gboolean user_function (GstElement * decodebin, GstPad *pad, GstCaps * caps)
This signal is fired at the very beginning with the source pad GstCaps. If
This signal is fired at the very beginning with the source pad `GstCaps`. If
the callback returns TRUE, the process continues normally. If the
callback returns FALSE, then the GstCaps are considered as a target caps
callback returns FALSE, then the `GstCaps` are considered as a target caps
and the autoplugging process stops.
- **'autoplug-factories'**:
@ -65,7 +65,7 @@ to assist or fine-tune the process.
gint user_function (GstElement* decodebin, GstPad* pad, GstCaps*caps, GValueArray* factories);
This signal is fired once autoplugging has got a list of compatible
GstElementFactory. The signal is emitted with the GstCaps of the
`GstElementFactory`. The signal is emitted with the `GstCaps` of the
source pad and a pointer on the GValueArray of compatible factories.
The callback should return the index of the elementfactory in
@ -79,7 +79,7 @@ first factory of the list.
### Target Caps
The target caps are a read/write GObject property of decodebin.
The target caps are a read/write `GObject` property of decodebin.
By default the target caps are:
@ -111,7 +111,7 @@ Streams belonging to the same group/chain of a media file.
The DecodeGroup contains:
- a GstMultiQueue to which all streams of a the media group are connected.
- a `GstMultiQueue` to which all streams of the media group are connected.
- the eventual decoders which are autoplugged in order to produce the
requested target pads.
@ -157,8 +157,8 @@ few differences:
- Non-linked srcpads graceful handling.
A GstTask is started for all srcpads when going to
GST\_STATE\_PAUSED.
A `GstTask` is started for all srcpads when going to
`GST_STATE_PAUSED`.
The task are blocking against a GCondition which will be fired in
two different cases:
@ -170,16 +170,16 @@ few differences:
synchronously in relation to the order in which it arrived globally
in the element (see 'Synchronous data pushing' below).
When woken up by the GCondition, the GstTask will try to push the
next GstBuffer/GstEvent on the queue. If pushing the
GstBuffer/GstEvent returns GST\_FLOW\_NOT\_LINKED, then the
When woken up by the GCondition, the `GstTask` will try to push the
next `GstBuffer`/`GstEvent` on the queue. If pushing the
`GstBuffer`/`GstEvent` returns `GST_FLOW_NOT_LINKED`, then the
associated queue is marked as 'not-linked'. If pushing the
GstBuffer/GstEvent succeeded the queue will no longer be marked as
`GstBuffer`/`GstEvent` succeeded the queue will no longer be marked as
'not-linked'.
If pushing on all srcpads returns GstFlowReturn different from
GST\_FLOW\_OK, then all the srcpads' tasks are stopped and
subsequent pushes on sinkpads will return GST\_FLOW\_NOT\_LINKED.
If pushing on all srcpads returns `GstFlowReturn` different from
`GST_FLOW_OK`, then all the srcpads' tasks are stopped and
subsequent pushes on sinkpads will return `GST_FLOW_NOT_LINKED`.
- Synchronous data pushing for non-linked pads.
@ -224,7 +224,7 @@ accordingly, if conversion is needed at all.
In an auto-plugging context this is not so straight-forward though,
because elements are plugged incrementally and not before the previous
element has processes some data and decided what it will output exactly
element has processed some data and decided what it will output exactly
(unless the template caps are completely fixed, then it can continue
right away, this is not always the case here though, see below). A
parser will thus have to decide on *some* output format so auto-plugging