mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
controlbindings: add comments for sparse control source
This commit is contained in:
parent
c4072744b7
commit
3de656121f
1 changed files with 2 additions and 0 deletions
|
@ -413,6 +413,7 @@ gst_direct_control_binding_get_value_array (GstControlBinding * _self,
|
|||
if ((res = gst_control_source_get_value_array (self->cs, timestamp,
|
||||
interval, n_values, src_val))) {
|
||||
for (i = 0; i < n_values; i++) {
|
||||
/* we will only get NAN for sparse control sources, such as triggers */
|
||||
if (!isnan (src_val[i])) {
|
||||
convert (self, src_val[i], (gpointer) values);
|
||||
} else {
|
||||
|
@ -454,6 +455,7 @@ gst_direct_control_binding_get_g_value_array (GstControlBinding * _self,
|
|||
if ((res = gst_control_source_get_value_array (self->cs, timestamp,
|
||||
interval, n_values, src_val))) {
|
||||
for (i = 0; i < n_values; i++) {
|
||||
/* we will only get NAN for sparse control sources, such as triggers */
|
||||
if (!isnan (src_val[i])) {
|
||||
g_value_init (&values[i], type);
|
||||
convert (self, src_val[i], &values[i]);
|
||||
|
|
Loading…
Reference in a new issue