gstreamer_core/libs/gst/controller/gstcontrolsource.c
changeset 8 4a7fac7dd34a
parent 0 0e761a78d257
child 11 1373546e05c6
--- a/gstreamer_core/libs/gst/controller/gstcontrolsource.c	Fri Mar 19 09:35:09 2010 +0200
+++ b/gstreamer_core/libs/gst/controller/gstcontrolsource.c	Fri Apr 16 15:15:52 2010 +0300
@@ -96,7 +96,7 @@
 {
   g_return_val_if_fail (GST_IS_CONTROL_SOURCE (self), FALSE);
 
-  if (self->get_value) {
+  if (G_LIKELY (self->get_value)) {
     return self->get_value (self, timestamp, value);
   } else {
     GST_ERROR ("Not bound to a specific property yet!");
@@ -130,7 +130,7 @@
 {
   g_return_val_if_fail (GST_IS_CONTROL_SOURCE (self), FALSE);
 
-  if (self->get_value_array) {
+  if (G_LIKELY (self->get_value_array)) {
     return self->get_value_array (self, timestamp, value_array);
   } else {
     GST_ERROR ("Not bound to a specific property yet!");