Gst.DebugCategory¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
color |
r |
||
description |
r |
||
name |
r |
||
threshold |
r |
Methods¶
|
|
|
|
|
|
|
Details¶
- class Gst.DebugCategory¶
This is the struct that describes the categories. Once initialized with #GST_DEBUG_CATEGORY_INIT, its values can’t be changed anymore.
- free()[source]¶
Removes and frees the category and all associated resources.
Deprecated since version ???: This function can easily cause memory corruption, don’t use it.
- get_color()[source]¶
- Returns:
the color of the category.
- Return type:
Returns the color of a debug category used when printing output in this category.
- get_description()[source]¶
- Returns:
the description of the category.
- Return type:
Returns the description of a debug category.
- get_name()[source]¶
- Returns:
the name of the category.
- Return type:
Returns the name of a debug category.
- get_threshold()[source]¶
- Returns:
the
Gst.DebugLevel
that is used as threshold.- Return type:
Returns the threshold of a
Gst.DebugCategory
.
- reset_threshold()[source]¶
Resets the threshold of the category to the default level. Debug information will only be output if the threshold is lower or equal to the level of the debugging message. Use this function to set the threshold back to where it was after using
Gst.DebugCategory.set_threshold
().
- set_threshold(level)[source]¶
- Parameters:
level (
Gst.DebugLevel
) – theGst.DebugLevel
threshold to set.
Sets the threshold of the category to the given level. Debug information will only be output if the threshold is lower or equal to the level of the debugging message.
Do not use this function in production code, because other functions may change the threshold of categories as side effect. It is however a nice function to use when debugging (even from gdb).