mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
jack: add some simple log handlers for jack
Add log handlers for jack that write to the gst debug log. This avoids spamming the console when e.g. using autoaudiosink, having the jack elements installed, but not running jack.
This commit is contained in:
parent
43a9c7652b
commit
117fa7c3e4
1 changed files with 15 additions and 0 deletions
|
@ -29,11 +29,26 @@
|
|||
GST_DEBUG_CATEGORY_STATIC (gst_jack_audio_client_debug);
|
||||
#define GST_CAT_DEFAULT gst_jack_audio_client_debug
|
||||
|
||||
static void
|
||||
jack_log_error (const gchar * msg)
|
||||
{
|
||||
GST_ERROR ("%s", msg);
|
||||
}
|
||||
|
||||
static void
|
||||
jack_info_error (const gchar * msg)
|
||||
{
|
||||
GST_INFO ("%s", msg);
|
||||
}
|
||||
|
||||
void
|
||||
gst_jack_audio_client_init (void)
|
||||
{
|
||||
GST_DEBUG_CATEGORY_INIT (gst_jack_audio_client_debug, "jackclient", 0,
|
||||
"jackclient helpers");
|
||||
|
||||
jack_set_error_function (jack_log_error);
|
||||
jack_set_info_function (jack_info_error);
|
||||
}
|
||||
|
||||
/* a list of global connections indexed by id and server. */
|
||||
|
|
Loading…
Reference in a new issue