lv2: use _OBJECT log variants and lower log level when processing

This commit is contained in:
Stefan Sauer 2016-05-18 21:26:50 -07:00
parent 1d9adb14dc
commit c66d3906a4
2 changed files with 7 additions and 7 deletions

View file

@ -319,8 +319,8 @@ gst_lv2_filter_transform_data (GstLV2Filter * self,
lv2_group = &lv2_class->lv2.in_group;
samples = nframes / lv2_group->ports->len;
in = g_new0 (gfloat, nframes);
GST_INFO ("in : samples=%u, nframes=%u, ports=%d", samples, nframes,
lv2_group->ports->len);
GST_LOG_OBJECT (self, "in : samples=%u, nframes=%u, ports=%d", samples,
nframes, lv2_group->ports->len);
if (lv2_group->ports->len > 1)
gst_lv2_filter_deinterleave_data (lv2_group->ports->len, in,
@ -336,8 +336,8 @@ gst_lv2_filter_transform_data (GstLV2Filter * self,
lv2_group = &lv2_class->lv2.out_group;
out_samples = nframes / lv2_group->ports->len;
out = g_new0 (gfloat, samples * lv2_group->ports->len);
GST_INFO ("out: samples=%u, nframes=%u, ports=%d", out_samples, nframes,
lv2_group->ports->len);
GST_LOG_OBJECT (self, "out: samples=%u, nframes=%u, ports=%d", out_samples,
nframes, lv2_group->ports->len);
for (j = 0; j < lv2_group->ports->len; ++j) {
lv2_port = &g_array_index (lv2_group->ports, GstLV2Port, j);
lilv_instance_connect_port (self->lv2.instance, lv2_port->index,

View file

@ -393,7 +393,7 @@ gst_lv2_source_fill (GstBaseSrc * base, guint64 offset,
lv2->next_sample = next_sample;
lv2->next_byte = next_byte;
GST_INFO_OBJECT (lv2, "generating %u samples at ts %" GST_TIME_FORMAT,
GST_LOG_OBJECT (lv2, "generating %u samples at ts %" GST_TIME_FORMAT,
samples, GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer)));
gst_buffer_map (buffer, &map, GST_MAP_WRITE);
@ -406,13 +406,13 @@ gst_lv2_source_fill (GstBaseSrc * base, guint64 offset,
lv2_port = &g_array_index (lv2_group->ports, GstLV2Port, j);
lilv_instance_connect_port (lv2->lv2.instance, lv2_port->index,
out + (j * samples));
GST_INFO_OBJECT (lv2, "connected port %d/%d", j, lv2_group->ports->len);
GST_LOG_OBJECT (lv2, "connected port %d/%d", j, lv2_group->ports->len);
}
} else {
lv2_port = &g_array_index (lv2_group->ports, GstLV2Port, 0);
lilv_instance_connect_port (lv2->lv2.instance, lv2_port->index,
(gfloat *) map.data);
GST_INFO_OBJECT (lv2, "connected port 0");
GST_LOG_OBJECT (lv2, "connected port 0");
}
lilv_instance_run (lv2->lv2.instance, samples);