![]() |
![]() |
![]() |
GStreamer Base Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
typedef GstDecodeBin2;
"autoplug-continue" : Run Last "autoplug-sort" : Run Last "new-decoded-pad" : Run Last "removed-decoded-pad" : Run Last "unknown-type" : Run Last
GstBin that auto-magically constructs a decoding pipeline using available decoders and demuxers via auto-plugging.
At this stage, decodebin2 is considered UNSTABLE. The API provided in the signals is expected to change in the near future.
To try out decodebin2, you can set the USE_DECODEBIN2 environment variable (USE_DECODEBIN2=1 for example). This will cause playbin to use decodebin2 instead of the older decodebin for its internal auto-plugging.
plugin | decodebin2 |
author | Edward Hervey <edward@fluendo.com> |
class | Generic/Bin/Decoder |
name | sink |
direction | sink |
presence | always |
details | ANY |
name | src%d |
direction | source |
presence | sometimes |
details | ANY |
gboolean user_function (GstDecodeBin2 *caps, GstCaps *Returns, gpointer user_data) : Run Last
This signal is emitted whenever decodebin2 finds a new stream. It is emitted before looking for any elements that can handle that stream.
caps : |
The GstCaps found. |
user_data : |
user data set when the signal handler was connected. |
Returns : | TRUE if you wish decodebin2 to look for elements that can
handle the given caps . If FALSE, those caps will be considered as
final and the pad will be exposed as such (see 'new-decoded-pad'
signal).
|
gboolean user_function (GstDecodeBin2 *caps, GstCaps *factories, gpointer Returns, gpointer user_data) : Run Last
This signal is emitted once decodebin2 has found all the possible
GstElementFactory that can be used to handle the given caps
.
UNSTABLE API. Will change soon.
caps : |
The GstCaps. |
factories : |
A GList of possible GstElementFactory to use. |
user_data : |
user data set when the signal handler was connected. |
Returns : | TRUE if you wish decodebin2 to start trying to decode
the given caps with the list of factories. FALSE if you do not want
these GstCaps, if so the pad will be exposed as unknown (see
'unknown-type' signal).
|
void user_function (GstDecodeBin2 *pad, GstPad *islast, gboolean arg2, gpointer user_data) : Run Last
This signal gets emitted as soon as a new pad of the same type as one of the valid 'raw' types is added.
pad : |
the newly created pad |
islast : |
TRUE if this is the last pad to be added. Deprecated. |
user_data : |
user data set when the signal handler was connected. |
void user_function (GstDecodeBin2 *pad, GstPad *arg1, gpointer user_data) : Run Last
This signal is emitted when a 'final' caps pad has been removed.
pad : |
the pad that was removed |
user_data : |
user data set when the signal handler was connected. |
void user_function (GstDecodeBin2 *pad, GstPad *caps, GstCaps *arg2, gpointer user_data) : Run Last
This signal is emitted when a pad for which there is no further possible decoding is added to the decodebin.
pad : |
the new pad containing caps that cannot be resolved to a 'final' stream type. |
caps : |
the GstCaps of the pad that cannot be resolved. |
user_data : |
user data set when the signal handler was connected. |