mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
controller: add more debug logging
This commit is contained in:
parent
886a43988f
commit
9dea3e37b1
1 changed files with 10 additions and 2 deletions
|
@ -234,8 +234,8 @@ gst_control_binding_sync_values (GstControlBinding * self, GstObject * object,
|
||||||
if (self->disabled)
|
if (self->disabled)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
GST_LOG_OBJECT (object, "property '%s' at ts=%" G_GUINT64_FORMAT,
|
GST_LOG_OBJECT (object, "property '%s' at ts=%" GST_TIME_FORMAT,
|
||||||
self->name, timestamp);
|
self->name, GST_TIME_ARGS (timestamp));
|
||||||
|
|
||||||
dst_val = &self->cur_value;
|
dst_val = &self->cur_value;
|
||||||
ret = gst_control_source_get_value (self->csource, timestamp, &src_val);
|
ret = gst_control_source_get_value (self->csource, timestamp, &src_val);
|
||||||
|
@ -286,6 +286,9 @@ gst_control_binding_get_value (GstControlBinding * self, GstClockTime timestamp)
|
||||||
dst_val = g_new0 (GValue, 1);
|
dst_val = g_new0 (GValue, 1);
|
||||||
g_value_init (dst_val, G_PARAM_SPEC_VALUE_TYPE (self->pspec));
|
g_value_init (dst_val, G_PARAM_SPEC_VALUE_TYPE (self->pspec));
|
||||||
self->convert (self, src_val, dst_val);
|
self->convert (self, src_val, dst_val);
|
||||||
|
} else {
|
||||||
|
GST_LOG ("no control value for property %s at ts %" GST_TIME_FORMAT,
|
||||||
|
self->name, GST_TIME_ARGS (timestamp));
|
||||||
}
|
}
|
||||||
|
|
||||||
return dst_val;
|
return dst_val;
|
||||||
|
@ -334,8 +337,13 @@ gst_control_binding_get_value_array (GstControlBinding * self,
|
||||||
if (!isnan (src_val[i])) {
|
if (!isnan (src_val[i])) {
|
||||||
g_value_init (&values[i], type);
|
g_value_init (&values[i], type);
|
||||||
convert (self, src_val[i], &values[i]);
|
convert (self, src_val[i], &values[i]);
|
||||||
|
} else {
|
||||||
|
GST_LOG ("no control value for property %s at index %d", self->name, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
GST_LOG ("failed to get control value for property %s at ts %"
|
||||||
|
GST_TIME_FORMAT, self->name, GST_TIME_ARGS (timestamp));
|
||||||
}
|
}
|
||||||
g_free (src_val);
|
g_free (src_val);
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in a new issue