From: Edward Hervey Date: Thu, 9 Dec 2010 14:12:34 +0000 (+0100) Subject: ges: Remove unused GObject vmethods X-Git-Tag: 1.19.3~493^2~2505 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=237ea89aa7ce5ea81b0bc9701c059dee632c05a3;p=platform%2Fupstream%2Fgstreamer.git ges: Remove unused GObject vmethods --- diff --git a/ges/ges-custom-timeline-source.c b/ges/ges-custom-timeline-source.c index e69dba4792..a6b25e1a15 100644 --- a/ges/ges-custom-timeline-source.c +++ b/ges/ges-custom-timeline-source.c @@ -46,26 +46,6 @@ static gboolean ges_cust_timeline_src_fill_track_object (GESTimelineObject * object, GESTrackObject * trobject, GstElement * gnlobj); -static void -ges_cust_timeline_src_get_property (GObject * object, - guint property_id, GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_cust_timeline_src_set_property (GObject * object, guint property_id, - const GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - static GESTrackObject * ges_cust_timeline_src_create_track_object (GESTimelineObject * obj, GESTrack * track) @@ -73,31 +53,13 @@ ges_cust_timeline_src_create_track_object (GESTimelineObject * obj, return g_object_new (GES_TYPE_TRACK_SOURCE, NULL); } -static void -ges_cust_timeline_src_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_cust_timeline_src_parent_class)->dispose (object); -} - -static void -ges_cust_timeline_src_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_cust_timeline_src_parent_class)->finalize (object); -} - static void ges_cust_timeline_src_class_init (GESCustomTimelineSourceClass * klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); GESTimelineObjectClass *tlobj_class = GES_TIMELINE_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (GESCustomTimelineSourcePrivate)); - object_class->get_property = ges_cust_timeline_src_get_property; - object_class->set_property = ges_cust_timeline_src_set_property; - object_class->dispose = ges_cust_timeline_src_dispose; - object_class->finalize = ges_cust_timeline_src_finalize; - tlobj_class->fill_track_object = ges_cust_timeline_src_fill_track_object; tlobj_class->create_track_object = ges_cust_timeline_src_create_track_object; } diff --git a/ges/ges-keyfile-formatter.c b/ges/ges-keyfile-formatter.c index f26f435936..e687692103 100644 --- a/ges/ges-keyfile-formatter.c +++ b/ges/ges-keyfile-formatter.c @@ -30,9 +30,6 @@ G_DEFINE_TYPE (GESKeyfileFormatter, ges_keyfile_formatter, GES_TYPE_FORMATTER); -static void ges_keyfile_formatter_dispose (GObject * object); -static void ges_keyfile_formatter_finalize (GObject * object); - /* for ini format */ static gboolean save_keyfile (GESFormatter * keyfile_formatter, GESTimeline * timeline); @@ -43,14 +40,9 @@ static void ges_keyfile_formatter_class_init (GESKeyfileFormatterClass * klass) { GESFormatterClass *formatter_klass; - GObjectClass *object_class; - object_class = G_OBJECT_CLASS (klass); formatter_klass = GES_FORMATTER_CLASS (klass); - object_class->dispose = ges_keyfile_formatter_dispose; - object_class->finalize = ges_keyfile_formatter_finalize; - formatter_klass->save = save_keyfile; formatter_klass->load = load_keyfile; } @@ -60,17 +52,6 @@ ges_keyfile_formatter_init (GESKeyfileFormatter * object) { } -static void -ges_keyfile_formatter_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_keyfile_formatter_parent_class)->dispose (object); -} - -static void -ges_keyfile_formatter_finalize (GObject * keyfile_formatter) -{ -} - GESKeyfileFormatter * ges_keyfile_formatter_new (void) { diff --git a/ges/ges-simple-timeline-layer.c b/ges/ges-simple-timeline-layer.c index 9f5c1f9cb5..d7283d2dea 100644 --- a/ges/ges-simple-timeline-layer.c +++ b/ges/ges-simple-timeline-layer.c @@ -107,18 +107,6 @@ ges_simple_timeline_layer_set_property (GObject * object, guint property_id, } } -static void -ges_simple_timeline_layer_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_simple_timeline_layer_parent_class)->dispose (object); -} - -static void -ges_simple_timeline_layer_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_simple_timeline_layer_parent_class)->finalize (object); -} - static void ges_simple_timeline_layer_class_init (GESSimpleTimelineLayerClass * klass) { @@ -129,8 +117,6 @@ ges_simple_timeline_layer_class_init (GESSimpleTimelineLayerClass * klass) object_class->get_property = ges_simple_timeline_layer_get_property; object_class->set_property = ges_simple_timeline_layer_set_property; - object_class->dispose = ges_simple_timeline_layer_dispose; - object_class->finalize = ges_simple_timeline_layer_finalize; /* Be informed when objects are being added/removed from elsewhere */ layer_class->object_removed = ges_simple_timeline_layer_object_removed; diff --git a/ges/ges-timeline-file-source.c b/ges/ges-timeline-file-source.c index f69d31433b..169faaa5c2 100644 --- a/ges/ges-timeline-file-source.c +++ b/ges/ges-timeline-file-source.c @@ -110,12 +110,6 @@ ges_tl_filesource_set_property (GObject * object, guint property_id, } } -static void -ges_tl_filesource_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_tl_filesource_parent_class)->dispose (object); -} - static void ges_tl_filesource_finalize (GObject * object) { @@ -134,7 +128,6 @@ ges_tl_filesource_class_init (GESTimelineFileSourceClass * klass) object_class->get_property = ges_tl_filesource_get_property; object_class->set_property = ges_tl_filesource_set_property; - object_class->dispose = ges_tl_filesource_dispose; object_class->finalize = ges_tl_filesource_finalize; diff --git a/ges/ges-timeline-layer.c b/ges/ges-timeline-layer.c index 4a7f681490..f7d0c73b38 100644 --- a/ges/ges-timeline-layer.c +++ b/ges/ges-timeline-layer.c @@ -103,12 +103,6 @@ ges_timeline_layer_dispose (GObject * object) G_OBJECT_CLASS (ges_timeline_layer_parent_class)->dispose (object); } -static void -ges_timeline_layer_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_layer_parent_class)->finalize (object); -} - static void ges_timeline_layer_class_init (GESTimelineLayerClass * klass) { @@ -119,7 +113,6 @@ ges_timeline_layer_class_init (GESTimelineLayerClass * klass) object_class->get_property = ges_timeline_layer_get_property; object_class->set_property = ges_timeline_layer_set_property; object_class->dispose = ges_timeline_layer_dispose; - object_class->finalize = ges_timeline_layer_finalize; /** * GESTimelineLayer:priority diff --git a/ges/ges-timeline-object.c b/ges/ges-timeline-object.c index 1c124358ac..21be72da72 100644 --- a/ges/ges-timeline-object.c +++ b/ges/ges-timeline-object.c @@ -123,18 +123,6 @@ ges_timeline_object_set_property (GObject * object, guint property_id, } } -static void -ges_timeline_object_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_object_parent_class)->dispose (object); -} - -static void -ges_timeline_object_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_object_parent_class)->finalize (object); -} - static void ges_timeline_object_class_init (GESTimelineObjectClass * klass) { @@ -144,8 +132,6 @@ ges_timeline_object_class_init (GESTimelineObjectClass * klass) object_class->get_property = ges_timeline_object_get_property; object_class->set_property = ges_timeline_object_set_property; - object_class->dispose = ges_timeline_object_dispose; - object_class->finalize = ges_timeline_object_finalize; klass->create_track_objects = ges_timeline_object_create_track_objects_func; /** diff --git a/ges/ges-timeline-overlay.c b/ges/ges-timeline-overlay.c index 09b4dab505..1b9d7bfa10 100644 --- a/ges/ges-timeline-overlay.c +++ b/ges/ges-timeline-overlay.c @@ -43,49 +43,10 @@ struct _GESTimelineOverlayPrivate void *nothing; }; -static void -ges_timeline_overlay_get_property (GObject * object, guint property_id, - GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_timeline_overlay_set_property (GObject * object, guint property_id, - const GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_timeline_overlay_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_overlay_parent_class)->dispose (object); -} - -static void -ges_timeline_overlay_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_overlay_parent_class)->finalize (object); -} - static void ges_timeline_overlay_class_init (GESTimelineOverlayClass * klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); - g_type_class_add_private (klass, sizeof (GESTimelineOverlayPrivate)); - - object_class->get_property = ges_timeline_overlay_get_property; - object_class->set_property = ges_timeline_overlay_set_property; - object_class->dispose = ges_timeline_overlay_dispose; - object_class->finalize = ges_timeline_overlay_finalize; } static void diff --git a/ges/ges-timeline-source.c b/ges/ges-timeline-source.c index 788e268da4..cec8f8fc07 100644 --- a/ges/ges-timeline-source.c +++ b/ges/ges-timeline-source.c @@ -117,12 +117,6 @@ ges_timeline_source_set_property (GObject * object, guint property_id, } } -static void -ges_timeline_source_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_source_parent_class)->dispose (object); -} - static void ges_timeline_source_finalize (GObject * object) { @@ -146,7 +140,6 @@ ges_timeline_source_class_init (GESTimelineSourceClass * klass) object_class->get_property = ges_timeline_source_get_property; object_class->set_property = ges_timeline_source_set_property; - object_class->dispose = ges_timeline_source_dispose; object_class->finalize = ges_timeline_source_finalize; /** diff --git a/ges/ges-timeline-test-source.c b/ges/ges-timeline-test-source.c index 7b488f39bd..92e3426948 100644 --- a/ges/ges-timeline-test-source.c +++ b/ges/ges-timeline-test-source.c @@ -119,18 +119,6 @@ ges_timeline_test_source_set_property (GObject * object, guint property_id, } } -static void -ges_timeline_test_source_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_test_source_parent_class)->dispose (object); -} - -static void -ges_timeline_test_source_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_test_source_parent_class)->finalize (object); -} - static void ges_timeline_test_source_class_init (GESTimelineTestSourceClass * klass) { @@ -141,8 +129,6 @@ ges_timeline_test_source_class_init (GESTimelineTestSourceClass * klass) object_class->get_property = ges_timeline_test_source_get_property; object_class->set_property = ges_timeline_test_source_set_property; - object_class->dispose = ges_timeline_test_source_dispose; - object_class->finalize = ges_timeline_test_source_finalize; /** * GESTimelineTestSource:vpattern: diff --git a/ges/ges-timeline-text-overlay.c b/ges/ges-timeline-text-overlay.c index a95adae5ae..ebd442150c 100644 --- a/ges/ges-timeline-text-overlay.c +++ b/ges/ges-timeline-text-overlay.c @@ -137,12 +137,6 @@ ges_tl_text_overlay_dispose (GObject * object) G_OBJECT_CLASS (ges_tl_text_overlay_parent_class)->dispose (object); } -static void -ges_tl_text_overlay_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_tl_text_overlay_parent_class)->finalize (object); -} - static void ges_tl_text_overlay_class_init (GESTimelineTextOverlayClass * klass) { @@ -154,7 +148,6 @@ ges_tl_text_overlay_class_init (GESTimelineTextOverlayClass * klass) object_class->get_property = ges_tl_text_overlay_get_property; object_class->set_property = ges_tl_text_overlay_set_property; object_class->dispose = ges_tl_text_overlay_dispose; - object_class->finalize = ges_tl_text_overlay_finalize; /** * GESTimelineTextOverlay:text diff --git a/ges/ges-timeline-title-source.c b/ges/ges-timeline-title-source.c index 798f114cb1..3bb811ec26 100644 --- a/ges/ges-timeline-title-source.c +++ b/ges/ges-timeline-title-source.c @@ -148,12 +148,6 @@ ges_tl_title_src_dispose (GObject * object) G_OBJECT_CLASS (ges_tl_title_src_parent_class)->dispose (object); } -static void -ges_tl_title_src_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_tl_title_src_parent_class)->finalize (object); -} - static void ges_tl_title_src_class_init (GESTimelineTitleSourceClass * klass) { @@ -165,7 +159,6 @@ ges_tl_title_src_class_init (GESTimelineTitleSourceClass * klass) object_class->get_property = ges_tl_title_src_get_property; object_class->set_property = ges_tl_title_src_set_property; object_class->dispose = ges_tl_title_src_dispose; - object_class->finalize = ges_tl_title_src_finalize; /** * GESTimelineTitleSource:text: diff --git a/ges/ges-timeline-transition.c b/ges/ges-timeline-transition.c index 650acc4cb9..201e23bc75 100644 --- a/ges/ges-timeline-transition.c +++ b/ges/ges-timeline-transition.c @@ -113,18 +113,6 @@ ges_timeline_transition_set_property (GObject * object, guint property_id, } } -static void -ges_timeline_transition_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_transition_parent_class)->dispose (object); -} - -static void -ges_timeline_transition_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_timeline_transition_parent_class)->finalize (object); -} - static void ges_timeline_transition_class_init (GESTimelineTransitionClass * klass) { @@ -135,8 +123,6 @@ ges_timeline_transition_class_init (GESTimelineTransitionClass * klass) object_class->get_property = ges_timeline_transition_get_property; object_class->set_property = ges_timeline_transition_set_property; - object_class->dispose = ges_timeline_transition_dispose; - object_class->finalize = ges_timeline_transition_finalize; /** * GESTimelineTransition:vtype diff --git a/ges/ges-track-audio-test-source.c b/ges/ges-track-audio-test-source.c index 5c0e6f9cca..324e13cd5e 100644 --- a/ges/ges-track-audio-test-source.c +++ b/ges/ges-track-audio-test-source.c @@ -45,10 +45,6 @@ enum PROP_0, }; -static void ges_track_audio_test_source_dispose (GObject * object); - -static void ges_track_audio_test_source_finalize (GObject * object); - static void ges_track_audio_test_source_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec); @@ -71,8 +67,6 @@ ges_track_audio_test_source_class_init (GESTrackAudioTestSourceClass * klass) object_class->get_property = ges_track_audio_test_source_get_property; object_class->set_property = ges_track_audio_test_source_set_property; - object_class->dispose = ges_track_audio_test_source_dispose; - object_class->finalize = ges_track_audio_test_source_finalize; bg_class->create_element = ges_track_audio_test_source_create_element; } @@ -87,18 +81,6 @@ ges_track_audio_test_source_init (GESTrackAudioTestSource * self) self->volume = 0; } -static void -ges_track_audio_test_source_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_track_audio_test_source_parent_class)->dispose (object); -} - -static void -ges_track_audio_test_source_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_track_audio_test_source_parent_class)->finalize (object); -} - static void ges_track_audio_test_source_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) diff --git a/ges/ges-track-filesource.c b/ges/ges-track-filesource.c index cb7f45a0b6..602e9431f7 100644 --- a/ges/ges-track-filesource.c +++ b/ges/ges-track-filesource.c @@ -85,12 +85,6 @@ ges_track_filesource_dispose (GObject * object) G_OBJECT_CLASS (ges_track_filesource_parent_class)->dispose (object); } -static void -ges_track_filesource_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_track_filesource_parent_class)->finalize (object); -} - static gboolean ges_track_filesource_create_gnl_object (GESTrackObject * object) { @@ -112,7 +106,6 @@ ges_track_filesource_class_init (GESTrackFileSourceClass * klass) object_class->get_property = ges_track_filesource_get_property; object_class->set_property = ges_track_filesource_set_property; object_class->dispose = ges_track_filesource_dispose; - object_class->finalize = ges_track_filesource_finalize; /** * GESTrackFileSource:uri diff --git a/ges/ges-track-image-source.c b/ges/ges-track-image-source.c index 1cabba4853..c91390c714 100644 --- a/ges/ges-track-image-source.c +++ b/ges/ges-track-image-source.c @@ -88,12 +88,6 @@ ges_track_image_source_dispose (GObject * object) G_OBJECT_CLASS (ges_track_image_source_parent_class)->dispose (object); } -static void -ges_track_image_source_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_track_image_source_parent_class)->finalize (object); -} - static void pad_added_cb (GstElement * timeline, GstPad * pad, GstElement * scale) { @@ -164,7 +158,6 @@ ges_track_image_source_class_init (GESTrackImageSourceClass * klass) object_class->get_property = ges_track_image_source_get_property; object_class->set_property = ges_track_image_source_set_property; object_class->dispose = ges_track_image_source_dispose; - object_class->finalize = ges_track_image_source_finalize; /** * GESTrackImageSource:uri diff --git a/ges/ges-track-operation.c b/ges/ges-track-operation.c index d010d89ec4..ca2c963515 100644 --- a/ges/ges-track-operation.c +++ b/ges/ges-track-operation.c @@ -35,38 +35,6 @@ struct _GESTrackOperationPrivate void *nothing; }; -static void -ges_track_operation_get_property (GObject * object, guint property_id, - GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_track_operation_set_property (GObject * object, guint property_id, - const GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_track_operation_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_track_operation_parent_class)->dispose (object); -} - -static void -ges_track_operation_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_track_operation_parent_class)->finalize (object); -} - static gboolean ges_track_operation_create_gnl_object (GESTrackObject * object) { @@ -100,16 +68,10 @@ ges_track_operation_create_gnl_object (GESTrackObject * object) static void ges_track_operation_class_init (GESTrackOperationClass * klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); GESTrackObjectClass *track_class = GES_TRACK_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (GESTrackOperationPrivate)); - object_class->get_property = ges_track_operation_get_property; - object_class->set_property = ges_track_operation_set_property; - object_class->dispose = ges_track_operation_dispose; - object_class->finalize = ges_track_operation_finalize; - track_class->create_gnl_object = ges_track_operation_create_gnl_object; klass->create_element = NULL; } diff --git a/ges/ges-track-source.c b/ges/ges-track-source.c index 1d9f11ecfe..bc111cb510 100644 --- a/ges/ges-track-source.c +++ b/ges/ges-track-source.c @@ -35,38 +35,6 @@ struct _GESTrackSourcePrivate void *nothing; }; -static void -ges_track_source_get_property (GObject * object, guint property_id, - GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_track_source_set_property (GObject * object, guint property_id, - const GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_track_source_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_track_source_parent_class)->dispose (object); -} - -static void -ges_track_source_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_track_source_parent_class)->finalize (object); -} - static gboolean ges_track_source_create_gnl_object (GESTrackObject * object) { @@ -100,16 +68,10 @@ ges_track_source_create_gnl_object (GESTrackObject * object) static void ges_track_source_class_init (GESTrackSourceClass * klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); GESTrackObjectClass *track_class = GES_TRACK_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (GESTrackSourcePrivate)); - object_class->get_property = ges_track_source_get_property; - object_class->set_property = ges_track_source_set_property; - object_class->dispose = ges_track_source_dispose; - object_class->finalize = ges_track_source_finalize; - track_class->create_gnl_object = ges_track_source_create_gnl_object; klass->create_element = NULL; } diff --git a/ges/ges-track-title-source.c b/ges/ges-track-title-source.c index e15cf0914a..b413f77b14 100644 --- a/ges/ges-track-title-source.c +++ b/ges/ges-track-title-source.c @@ -44,8 +44,6 @@ enum static void ges_track_title_src_dispose (GObject * object); -static void ges_track_title_src_finalize (GObject * object); - static void ges_track_title_src_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec); @@ -68,7 +66,6 @@ ges_track_title_src_class_init (GESTrackTitleSourceClass * klass) object_class->get_property = ges_track_title_src_get_property; object_class->set_property = ges_track_title_src_set_property; object_class->dispose = ges_track_title_src_dispose; - object_class->finalize = ges_track_title_src_finalize; bg_class->create_element = ges_track_title_src_create_element; } @@ -112,12 +109,6 @@ ges_track_title_src_dispose (GObject * object) G_OBJECT_CLASS (ges_track_title_src_parent_class)->dispose (object); } -static void -ges_track_title_src_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_track_title_src_parent_class)->finalize (object); -} - static void ges_track_title_src_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) diff --git a/ges/ges-track-transition.c b/ges/ges-track-transition.c index 937591dc5e..84eaa0e526 100644 --- a/ges/ges-track-transition.c +++ b/ges/ges-track-transition.c @@ -39,38 +39,6 @@ struct _GESTrackTransitionPrivate GstElement *ges_track_transition_create_element (GESTrackTransition * self); -static void -ges_track_transition_get_property (GObject * object, guint property_id, - GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_track_transition_set_property (GObject * object, guint property_id, - const GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_track_transition_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_track_transition_parent_class)->dispose (object); -} - -static void -ges_track_transition_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_track_transition_parent_class)->finalize (object); -} - static gboolean ges_track_transition_create_gnl_object (GESTrackObject * object) { @@ -109,16 +77,10 @@ ges_track_transition_create_element (GESTrackTransition * self) static void ges_track_transition_class_init (GESTrackTransitionClass * klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); GESTrackObjectClass *track_class = GES_TRACK_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (GESTrackTransitionPrivate)); - object_class->get_property = ges_track_transition_get_property; - object_class->set_property = ges_track_transition_set_property; - object_class->dispose = ges_track_transition_dispose; - object_class->finalize = ges_track_transition_finalize; - track_class->create_gnl_object = ges_track_transition_create_gnl_object; klass->create_element = ges_track_transition_create_element; } diff --git a/ges/ges-track-video-test-source.c b/ges/ges-track-video-test-source.c index 9f54806e11..8c700d0770 100644 --- a/ges/ges-track-video-test-source.c +++ b/ges/ges-track-video-test-source.c @@ -36,40 +36,18 @@ struct _GESTrackVideoTestSourcePrivate void *nothing; }; -enum -{ - PROP_0, -}; - -static void ges_track_video_test_source_dispose (GObject * object); - -static void ges_track_video_test_source_finalize (GObject * object); - -static void ges_track_video_test_source_get_property (GObject * object, guint - property_id, GValue * value, GParamSpec * pspec); - -static void ges_track_video_test_source_set_property (GObject * object, guint - property_id, const GValue * value, GParamSpec * pspec); - static GstElement *ges_track_video_test_source_create_element (GESTrackSource * self); static void ges_track_video_test_source_class_init (GESTrackVideoTestSourceClass * klass) { - GObjectClass *object_class; GESTrackSourceClass *track_source_class; g_type_class_add_private (klass, sizeof (GESTrackVideoTestSourcePrivate)); - object_class = G_OBJECT_CLASS (klass); track_source_class = GES_TRACK_SOURCE_CLASS (klass); - object_class->get_property = ges_track_video_test_source_get_property; - object_class->set_property = ges_track_video_test_source_set_property; - object_class->dispose = ges_track_video_test_source_dispose; - object_class->finalize = ges_track_video_test_source_finalize; - track_source_class->create_element = ges_track_video_test_source_create_element; } @@ -83,38 +61,6 @@ ges_track_video_test_source_init (GESTrackVideoTestSource * self) self->pattern = GES_VIDEO_TEST_PATTERN_BLACK; } -static void -ges_track_video_test_source_dispose (GObject * object) -{ - G_OBJECT_CLASS (ges_track_video_test_source_parent_class)->dispose (object); -} - -static void -ges_track_video_test_source_finalize (GObject * object) -{ - G_OBJECT_CLASS (ges_track_video_test_source_parent_class)->finalize (object); -} - -static void -ges_track_video_test_source_get_property (GObject * object, - guint property_id, GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -ges_track_video_test_source_set_property (GObject * object, - guint property_id, const GValue * value, GParamSpec * pspec) -{ - switch (property_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - static GstElement * ges_track_video_test_source_create_element (GESTrackSource * self) {