mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
ladspa: use _OBJECT log variants for plugin_init
Also trim leading whitespae.
This commit is contained in:
parent
1c83ce7a96
commit
e5ec6f102e
1 changed files with 13 additions and 14 deletions
|
@ -402,8 +402,8 @@ plugin_init (GstPlugin * plugin)
|
|||
GST_DEBUG_CATEGORY_INIT (ladspa_debug, "ladspa", 0, "LADSPA plugins");
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
|
||||
LOCALEDIR);
|
||||
GST_DEBUG_OBJECT (plugin, "binding text domain %s to locale dir %s",
|
||||
GETTEXT_PACKAGE, LOCALEDIR);
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
#endif
|
||||
|
@ -420,13 +420,12 @@ plugin_init (GstPlugin * plugin)
|
|||
if (ladspa_meta_all) {
|
||||
n = gst_structure_n_fields (ladspa_meta_all);
|
||||
}
|
||||
GST_INFO ("%d entries in cache", n);
|
||||
GST_INFO_OBJECT (plugin, "%d entries in cache", n);
|
||||
if (!n) {
|
||||
ladspa_meta_all = gst_structure_new_empty ("ladspa");
|
||||
res = ladspa_plugin_path_search (plugin);
|
||||
if (res) {
|
||||
if ((res = ladspa_plugin_path_search (plugin))) {
|
||||
n = gst_structure_n_fields (ladspa_meta_all);
|
||||
GST_INFO ("%d entries after scanning", n);
|
||||
GST_INFO_OBJECT (plugin, "%d entries after scanning", n);
|
||||
gst_plugin_set_cache_data (plugin, ladspa_meta_all);
|
||||
}
|
||||
} else {
|
||||
|
@ -438,7 +437,7 @@ plugin_init (GstPlugin * plugin)
|
|||
const gchar *name;
|
||||
const GValue *value;
|
||||
|
||||
GST_INFO ("register types");
|
||||
GST_INFO_OBJECT (plugin, "register types");
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
name = gst_structure_nth_field_name (ladspa_meta_all, i);
|
||||
|
@ -452,7 +451,7 @@ plugin_init (GstPlugin * plugin)
|
|||
}
|
||||
|
||||
if (!res) {
|
||||
GST_WARNING ("no LADSPA plugins found, check LADSPA_PATH");
|
||||
GST_WARNING_OBJECT (plugin, "no LADSPA plugins found, check LADSPA_PATH");
|
||||
}
|
||||
|
||||
/* we don't want to fail, even if there are no elements registered */
|
||||
|
|
Loading…
Reference in a new issue