/* prototypes */
-static void gst_caps_debug_set_property (GObject * object,
- guint property_id, const GValue * value, GParamSpec * pspec);
-static void gst_caps_debug_get_property (GObject * object,
- guint property_id, GValue * value, GParamSpec * pspec);
static void gst_caps_debug_dispose (GObject * object);
static void gst_caps_debug_finalize (GObject * object);
static GstStateChangeReturn
gst_caps_debug_change_state (GstElement * element, GstStateChange transition);
-enum
-{
- PROP_0
-};
-
/* pad templates */
static GstStaticPadTemplate gst_caps_debug_sink_template =
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gobject_class->set_property = gst_caps_debug_set_property;
- gobject_class->get_property = gst_caps_debug_get_property;
gobject_class->dispose = gst_caps_debug_dispose;
gobject_class->finalize = gst_caps_debug_finalize;
element_class->change_state = GST_DEBUG_FUNCPTR (gst_caps_debug_change_state);
}
-void
-gst_caps_debug_set_property (GObject * object, guint property_id,
- const GValue * value, GParamSpec * pspec)
-{
- GstCapsDebug *capsdebug;
-
- g_return_if_fail (GST_IS_CAPS_DEBUG (object));
- capsdebug = GST_CAPS_DEBUG (object);
-
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- break;
- }
-}
-
-void
-gst_caps_debug_get_property (GObject * object, guint property_id,
- GValue * value, GParamSpec * pspec)
-{
- GstCapsDebug *capsdebug;
-
- g_return_if_fail (GST_IS_CAPS_DEBUG (object));
- capsdebug = GST_CAPS_DEBUG (object);
-
- switch (property_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- break;
- }
-}
-
void
gst_caps_debug_dispose (GObject * object)
{
- GstCapsDebug *capsdebug;
-
- g_return_if_fail (GST_IS_CAPS_DEBUG (object));
- capsdebug = GST_CAPS_DEBUG (object);
-
/* clean up as possible. may be called multiple times */
G_OBJECT_CLASS (parent_class)->dispose (object);
void
gst_caps_debug_finalize (GObject * object)
{
- GstCapsDebug *capsdebug;
-
- g_return_if_fail (GST_IS_CAPS_DEBUG (object));
- capsdebug = GST_CAPS_DEBUG (object);
-
/* clean up object here */
G_OBJECT_CLASS (parent_class)->finalize (object);
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
- return GST_STATE_CHANGE_SUCCESS;
+ return ret;
}