diff --git a/ges/ges-timeline-overlay.c b/ges/ges-timeline-overlay.c index 1c88d0bf53..eb38db90b4 100644 --- a/ges/ges-timeline-overlay.c +++ b/ges/ges-timeline-overlay.c @@ -391,7 +391,7 @@ ges_tl_overlay_create_track_object (GESTimelineObject * obj, GESTrack * track) } else { - res = GES_TRACK_OBJECT (ges_track_overlay_new ()); + res = NULL; } return res; diff --git a/ges/ges-track-video-overlay.c b/ges/ges-track-video-overlay.c index 7d1ae912c6..eff29e4492 100644 --- a/ges/ges-track-video-overlay.c +++ b/ges/ges-track-video-overlay.c @@ -29,7 +29,7 @@ #include "ges-track-video-overlay.h" G_DEFINE_TYPE (GESTrackVideoOverlay, ges_track_video_overlay, - GES_TYPE_TRACK_OVERLAY); + GES_TYPE_TRACK_OPERATION); enum { @@ -46,17 +46,17 @@ static void ges_track_video_overlay_get_property (GObject * object, guint static void ges_track_video_overlay_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec); -static GstElement *ges_track_video_overlay_create_element (GESTrackOverlay +static GstElement *ges_track_video_overlay_create_element (GESTrackOperation * self); static void ges_track_video_overlay_class_init (GESTrackVideoOverlayClass * klass) { GObjectClass *object_class; - GESTrackOverlayClass *bg_class; + GESTrackOperationClass *bg_class; object_class = G_OBJECT_CLASS (klass); - bg_class = GES_TRACK_OVERLAY_CLASS (klass); + bg_class = GES_TRACK_OPERATION_CLASS (klass); object_class->get_property = ges_track_video_overlay_get_property; object_class->set_property = ges_track_video_overlay_set_property; @@ -123,7 +123,7 @@ ges_track_video_overlay_set_property (GObject * object, } static GstElement * -ges_track_video_overlay_create_element (GESTrackOverlay * object) +ges_track_video_overlay_create_element (GESTrackOperation * object) { GstElement *ret, *text; GstPad *src_target, *sink_target; diff --git a/ges/ges-track-video-overlay.h b/ges/ges-track-video-overlay.h index a8d11cf938..da8b04a4f5 100644 --- a/ges/ges-track-video-overlay.h +++ b/ges/ges-track-video-overlay.h @@ -24,7 +24,7 @@ #include #include #include -#include +#include G_BEGIN_DECLS @@ -51,7 +51,7 @@ G_BEGIN_DECLS * */ struct _GESTrackVideoOverlay { - GESTrackOverlay parent; + GESTrackOperation parent; /*< private >*/ gchar *text; @@ -67,7 +67,7 @@ struct _GESTrackVideoOverlay { */ struct _GESTrackVideoOverlayClass { - GESTrackOverlayClass parent_class; + GESTrackOperationClass parent_class; /*< private >*/ }; diff --git a/tests/check/ges/overlays.c b/tests/check/ges/overlays.c index dcd6a946ac..c70ab8eec1 100644 --- a/tests/check/ges/overlays.c +++ b/tests/check/ges/overlays.c @@ -35,17 +35,16 @@ GST_START_TEST (test_overlay_basic) GST_END_TEST; #define gnl_object_check(gnlobj, start, duration, mstart, mduration, priority, active) { \ - guint64 pstart, pdur, pmstart, pmdur, pprio, pact; \ + guint64 pstart, pdur, pmstart, pmdur, pprio; \ g_object_get (gnlobj, "start", &pstart, "duration", &pdur, \ "media-start", &pmstart, "media-duration", &pmdur, \ - "priority", &pprio, "active", &pact, \ + "priority", &pprio, \ NULL); \ assert_equals_uint64 (pstart, start); \ assert_equals_uint64 (pdur, duration); \ assert_equals_uint64 (pmstart, mstart); \ assert_equals_uint64 (pmdur, mduration); \ assert_equals_int (pprio, priority); \ - assert_equals_int (pact, active); \ } @@ -57,7 +56,7 @@ GST_START_TEST (test_overlay_properties) ges_init (); - track = ges_track_new (GES_TRACK_TYPE_AUDIO, GST_CAPS_ANY); + track = ges_track_new (GES_TRACK_TYPE_VIDEO, GST_CAPS_ANY); fail_unless (track != NULL); object = (GESTimelineObject *)