// Generated by gtkmmproc -- DO NOT MODIFY!


#include <gstreamermm/basesink.h>
#include <gstreamermm/private/basesink_p.h>

/* gstreamermm - a C++ wrapper for gstreamer
 *
 * Copyright 2008 The gstreamermm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <gstreamermm/pad.h>


namespace Gst
{

ClockReturn BaseSink::wait_clock(ClockTime time)
{
  return (ClockReturn)(gst_base_sink_wait_clock(const_cast<GstBaseSink*>(gobj()), (GstClockTime)(time), NULL));
}

FlowReturn BaseSink::wait_eos(ClockTime time)
{
  return (FlowReturn)(gst_base_sink_wait_eos(const_cast<GstBaseSink*>(gobj()), (GstClockTime)(time), NULL));
}

} // namespace Gst

namespace
{
} // anonymous namespace


namespace Glib
{

Glib::RefPtr<Gst::BaseSink> wrap(GstBaseSink* object, bool take_copy)
{
  return Glib::RefPtr<Gst::BaseSink>( dynamic_cast<Gst::BaseSink*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
  //We use dynamic_cast<> in case of multiple inheritance.
}

} /* namespace Glib */


namespace Gst
{


/* The *_Class implementation: */

const Glib::Class& BaseSink_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Glib::Class has to know the class init function to clone custom types.
    class_init_func_ = &BaseSink_Class::class_init_function;

    // This is actually just optimized away, apparently with no harm.
    // Make sure that the parent type has been created.
    //CppClassParent::CppObjectType::get_type();

    // Create the wrapper type, with the same class/instance size as the base type.
    register_derived_type(gst_base_sink_get_type());

    // Add derived versions of interfaces, if the C type implements any interfaces:

  }

  return *this;
}

void BaseSink_Class::class_init_function(void* g_class, void* class_data)
{
  BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
  CppClassParent::class_init_function(klass, class_data);

#ifdef GLIBMM_VFUNCS_ENABLED
  klass->get_caps = &get_caps_vfunc_callback;
  klass->get_times = &get_times_vfunc_callback;
  klass->preroll = &preroll_vfunc_callback;
  klass->render = &render_vfunc_callback;
  klass->async_play = &async_play_vfunc_callback;
  klass->fixate = &fixate_vfunc_callback;
#endif //GLIBMM_VFUNCS_ENABLED

#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}

#ifdef GLIBMM_VFUNCS_ENABLED
GstCaps* BaseSink_Class::get_caps_vfunc_callback(GstBaseSink* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        return (obj->get_caps_vfunc())->gobj();
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
  );

  // Call the original underlying C function:
  if(base && base->get_caps)
    return (*base->get_caps)(self);


  typedef GstCaps* RType;
  return RType();
}
void BaseSink_Class::get_times_vfunc_callback(GstBaseSink* self, GstBuffer* buffer, GstClockTime* start, GstClockTime* end)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->get_times_vfunc(Gst::wrap(buffer, true)
, *(start)
, *(end)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
  );

  // Call the original underlying C function:
  if(base && base->get_times)
    (*base->get_times)(self, buffer, start, end);

}
GstFlowReturn BaseSink_Class::preroll_vfunc_callback(GstBaseSink* self, GstBuffer* buffer)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        return ((GstFlowReturn)(obj->preroll_vfunc(Gst::wrap(buffer, true)
)));
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
  );

  // Call the original underlying C function:
  if(base && base->preroll)
    return (*base->preroll)(self, buffer);


  typedef GstFlowReturn RType;
  return RType();
}
GstFlowReturn BaseSink_Class::render_vfunc_callback(GstBaseSink* self, GstBuffer* buffer)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        return ((GstFlowReturn)(obj->render_vfunc(Gst::wrap(buffer, true)
)));
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
  );

  // Call the original underlying C function:
  if(base && base->render)
    return (*base->render)(self, buffer);


  typedef GstFlowReturn RType;
  return RType();
}
GstStateChangeReturn BaseSink_Class::async_play_vfunc_callback(GstBaseSink* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        return ((GstStateChangeReturn)(obj->async_play_vfunc()));
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
  );

  // Call the original underlying C function:
  if(base && base->async_play)
    return (*base->async_play)(self);


  typedef GstStateChangeReturn RType;
  return RType();
}
void BaseSink_Class::fixate_vfunc_callback(GstBaseSink* self, GstCaps* caps)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->fixate_vfunc(Glib::wrap(caps, true)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
  );

  // Call the original underlying C function:
  if(base && base->fixate)
    (*base->fixate)(self, caps);

}
#endif //GLIBMM_VFUNCS_ENABLED

#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED


Glib::ObjectBase* BaseSink_Class::wrap_new(GObject* object)
{
  return new BaseSink((GstBaseSink*)object);
}


/* The implementation: */

GstBaseSink* BaseSink::gobj_copy()
{
  reference();
  return gobj();
}

BaseSink::BaseSink(const Glib::ConstructParams& construct_params)
:
  Element(construct_params)
{

}

BaseSink::BaseSink(GstBaseSink* castitem)
:
  Element((GstElement*)(castitem))
{}

BaseSink::~BaseSink()
{}


BaseSink::CppClassType BaseSink::basesink_class_; // initialize static member

GType BaseSink::get_type()
{
  return basesink_class_.init().get_type();
}

GType BaseSink::get_base_type()
{
  return gst_base_sink_get_type();
}


bool BaseSink::query_latency(bool& live, bool& upstream_live, ClockTime& min_latency, ClockTime& max_latency) const
{
  return gst_base_sink_query_latency(const_cast<GstBaseSink*>(gobj()), ((gboolean*)&(live)), ((gboolean*)&(upstream_live)), (GstClockTime*)(&(min_latency)), (GstClockTime*)(&(max_latency)));
}

ClockTime BaseSink::get_latency() const
{
  return ((ClockTime)(gst_base_sink_get_latency(const_cast<GstBaseSink*>(gobj()))));
}

FlowReturn BaseSink::wait_preroll()
{
  return ((FlowReturn)(gst_base_sink_wait_preroll(gobj())));
}

ClockReturn BaseSink::wait_clock(ClockTime time, ClockTimeDiff& jitter)
{
  return ((ClockReturn)(gst_base_sink_wait_clock(gobj(), ((GstClockTime)(time)), (GstClockTimeDiff*)(&(jitter)))));
}

FlowReturn BaseSink::wait_eos(ClockTime time, ClockTimeDiff& jitter)
{
  return ((FlowReturn)(gst_base_sink_wait_eos(gobj(), ((GstClockTime)(time)), (GstClockTimeDiff*)(&(jitter)))));
}

void BaseSink::set_sync(bool sync)
{
gst_base_sink_set_sync(gobj(), static_cast<int>(sync)); 
}

bool BaseSink::get_sync() const
{
  return gst_base_sink_get_sync(const_cast<GstBaseSink*>(gobj()));
}

void BaseSink::set_max_lateness(gint64 max_lateness)
{
gst_base_sink_set_max_lateness(gobj(), max_lateness); 
}

gint64 BaseSink::get_max_lateness() const
{
  return gst_base_sink_get_max_lateness(const_cast<GstBaseSink*>(gobj()));
}

void BaseSink::set_qos_enabled(bool enabled)
{
gst_base_sink_set_qos_enabled(gobj(), static_cast<int>(enabled)); 
}

bool BaseSink::is_qos_enabled() const
{
  return gst_base_sink_is_qos_enabled(const_cast<GstBaseSink*>(gobj()));
}

void BaseSink::set_async_enabled(bool enabled)
{
gst_base_sink_set_async_enabled(gobj(), static_cast<int>(enabled)); 
}

bool BaseSink::is_async_enabled() const
{
  return gst_base_sink_is_async_enabled(const_cast<GstBaseSink*>(gobj()));
}

void BaseSink::set_ts_offset(ClockTimeDiff offset)
{
gst_base_sink_set_ts_offset(gobj(), GstClockTimeDiff(offset)); 
}

ClockTimeDiff BaseSink::get_ts_offset() const
{
  return ClockTimeDiff(gst_base_sink_get_ts_offset(const_cast<GstBaseSink*>(gobj())));
}

void BaseSink::set_render_delay(ClockTime delay)
{
gst_base_sink_set_render_delay(gobj(), ((GstClockTime)(delay))); 
}

ClockTime BaseSink::get_render_delay() const
{
  return ((ClockTime)(gst_base_sink_get_render_delay(const_cast<GstBaseSink*>(gobj()))));
}

Glib::RefPtr<Gst::Buffer> BaseSink::get_last_buffer()
{
  return Gst::wrap(gst_base_sink_get_last_buffer(gobj()));
}

Glib::RefPtr<const Gst::Buffer> BaseSink::get_last_buffer() const
{
  return const_cast<BaseSink*>(this)->get_last_buffer();
}

 Glib::RefPtr<Gst::Pad> BaseSink::get_sink_pad() const
{
  return Glib::wrap(gobj()->sinkpad);
}
 

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> BaseSink::property_async() 
{
  return Glib::PropertyProxy<bool>(this, "async");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> BaseSink::property_async() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "async");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Buffer> > BaseSink::property_last_buffer() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Buffer> >(this, "last-buffer");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<gint64> BaseSink::property_max_lateness() 
{
  return Glib::PropertyProxy<gint64>(this, "max-lateness");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<gint64> BaseSink::property_max_lateness() const
{
  return Glib::PropertyProxy_ReadOnly<gint64>(this, "max-lateness");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<guint> BaseSink::property_preroll_queue_len() 
{
  return Glib::PropertyProxy<guint>(this, "preroll-queue-len");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<guint> BaseSink::property_preroll_queue_len() const
{
  return Glib::PropertyProxy_ReadOnly<guint>(this, "preroll-queue-len");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> BaseSink::property_qos() 
{
  return Glib::PropertyProxy<bool>(this, "qos");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> BaseSink::property_qos() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "qos");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<bool> BaseSink::property_sync() 
{
  return Glib::PropertyProxy<bool>(this, "sync");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<bool> BaseSink::property_sync() const
{
  return Glib::PropertyProxy_ReadOnly<bool>(this, "sync");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy<gint64> BaseSink::property_ts_offset() 
{
  return Glib::PropertyProxy<gint64>(this, "ts-offset");
}
#endif //GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
Glib::PropertyProxy_ReadOnly<gint64> BaseSink::property_ts_offset() const
{
  return Glib::PropertyProxy_ReadOnly<gint64>(this, "ts-offset");
}
#endif //GLIBMM_PROPERTIES_ENABLED


#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED

#ifdef GLIBMM_VFUNCS_ENABLED
Glib::RefPtr<Gst::Caps> Gst::BaseSink::get_caps_vfunc() const
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->get_caps)
    return Glib::wrap((*base->get_caps)(const_cast<GstBaseSink*>(gobj())));

  typedef Glib::RefPtr<Gst::Caps> RType;
  return RType();
}
void Gst::BaseSink::get_times_vfunc(const Glib::RefPtr<Gst::Buffer>& buffer, ClockTime& start, ClockTime& end) const
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->get_times)
    (*base->get_times)(const_cast<GstBaseSink*>(gobj()),Glib::unwrap(buffer),(GstClockTime*)(&(start)),(GstClockTime*)(&(end)));
}
FlowReturn Gst::BaseSink::preroll_vfunc(const Glib::RefPtr<Gst::Buffer>& buffer) 
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->preroll)
    return ((FlowReturn)((*base->preroll)(gobj(),Glib::unwrap(buffer))));

  typedef FlowReturn RType;
  return RType();
}
FlowReturn Gst::BaseSink::render_vfunc(const Glib::RefPtr<Gst::Buffer>& buffer) 
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->render)
    return ((FlowReturn)((*base->render)(gobj(),Glib::unwrap(buffer))));

  typedef FlowReturn RType;
  return RType();
}
StateChangeReturn Gst::BaseSink::async_play_vfunc() 
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->async_play)
    return ((StateChangeReturn)((*base->async_play)(gobj())));

  typedef StateChangeReturn RType;
  return RType();
}
void Gst::BaseSink::fixate_vfunc(const Glib::RefPtr<Gst::Caps>& caps) 
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->fixate)
    (*base->fixate)(gobj(),Glib::unwrap(caps));
}
#endif //GLIBMM_VFUNCS_ENABLED


} // namespace Gst


