gstreamer_core/libs/gst/controller/gstcontrolsource.c
changeset 8 4a7fac7dd34a
parent 0 0e761a78d257
child 11 1373546e05c6
equal deleted inserted replaced
7:71e347f905f2 8:4a7fac7dd34a
    94 gst_control_source_get_value (GstControlSource * self, GstClockTime timestamp,
    94 gst_control_source_get_value (GstControlSource * self, GstClockTime timestamp,
    95     GValue * value)
    95     GValue * value)
    96 {
    96 {
    97   g_return_val_if_fail (GST_IS_CONTROL_SOURCE (self), FALSE);
    97   g_return_val_if_fail (GST_IS_CONTROL_SOURCE (self), FALSE);
    98 
    98 
    99   if (self->get_value) {
    99   if (G_LIKELY (self->get_value)) {
   100     return self->get_value (self, timestamp, value);
   100     return self->get_value (self, timestamp, value);
   101   } else {
   101   } else {
   102     GST_ERROR ("Not bound to a specific property yet!");
   102     GST_ERROR ("Not bound to a specific property yet!");
   103     return FALSE;
   103     return FALSE;
   104   }
   104   }
   128 gst_control_source_get_value_array (GstControlSource * self,
   128 gst_control_source_get_value_array (GstControlSource * self,
   129     GstClockTime timestamp, GstValueArray * value_array)
   129     GstClockTime timestamp, GstValueArray * value_array)
   130 {
   130 {
   131   g_return_val_if_fail (GST_IS_CONTROL_SOURCE (self), FALSE);
   131   g_return_val_if_fail (GST_IS_CONTROL_SOURCE (self), FALSE);
   132 
   132 
   133   if (self->get_value_array) {
   133   if (G_LIKELY (self->get_value_array)) {
   134     return self->get_value_array (self, timestamp, value_array);
   134     return self->get_value_array (self, timestamp, value_array);
   135   } else {
   135   } else {
   136     GST_ERROR ("Not bound to a specific property yet!");
   136     GST_ERROR ("Not bound to a specific property yet!");
   137     return FALSE;
   137     return FALSE;
   138   }
   138   }