[gstreamermm: 81/167] [peper0] set_clock vfunc fixed



commit b9f515008190ed17386f9f1511bb452a1cb241a8
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date:   Tue Jul 30 13:25:28 2013 +0200

    [peper0] set_clock vfunc fixed

 gstreamer/src/element.ccg |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gstreamer/src/element.ccg b/gstreamer/src/element.ccg
index bfad3ea..5656809 100644
--- a/gstreamer/src/element.ccg
+++ b/gstreamer/src/element.ccg
@@ -161,8 +161,7 @@ gboolean Element_Class::set_clock_vfunc_callback(GstElement* self, GstClock* clo
     return (*base->set_clock)(self, clock);
 
 
-  // Return same value as gst_element_set_clock() (base class vfunc) returns
-  // when base class has no set_clock() vfunc.
+  // Return the value that would be assumed as retval if element->set_clock was not set (see 
gst_element_set_clock() in gstelement.c)
   return true;
 }
 bool Gst::Element::set_clock_vfunc(const Glib::RefPtr<Gst::Clock>& clock)
@@ -174,8 +173,8 @@ bool Gst::Element::set_clock_vfunc(const Glib::RefPtr<Gst::Clock>& clock)
   if(base && base->set_clock)
     return (*base->set_clock)(gobj(),Glib::unwrap(clock));
 
-  typedef bool RType;
-  return RType();
+  // Return the value that would be assumed as retval if element->set_clock was not set (see 
gst_element_set_clock() in gstelement.c)
+  return true;
 }
 
 } //namespace Gst


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]