DebugCategory

This is the struct that describes the categories. Once initialized with GST_DEBUG_CATEGORY_INIT, its values can't be changed anymore.

Constructors

this
this(GstDebugCategory* gstDebugCategory, bool ownedRef)

Sets our main struct and passes it to the parent class.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

free
void free()

Removes and frees the category and all associated resources.

getColor
uint getColor()

Returns the color of a debug category used when printing output in this category.

getDebugCategoryStruct
GstDebugCategory* getDebugCategoryStruct(bool transferOwnership)

Get the main Gtk struct

getDescription
string getDescription()

Returns the description of a debug category.

getName
string getName()

Returns the name of a debug category.

getStruct
void* getStruct()

the main Gtk struct as a void*

getThreshold
GstDebugLevel getThreshold()

Returns the threshold of a gstreamer.DebugCategory

resetThreshold
void resetThreshold()

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 DebugCategory.setThreshold.

setThreshold
void setThreshold(GstDebugLevel level)

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).

Variables

gstDebugCategory
GstDebugCategory* gstDebugCategory;

the main Gtk struct