diff options
author | Thibault Saunier <thibault.saunier@collabora.com> | 2013-12-24 15:34:51 +0100 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@collabora.com> | 2013-12-27 10:14:19 +0100 |
commit | d00283f3097a266f7c2a9465e75a23996d9dcb19 (patch) | |
tree | 2c3743040649eafd99fa1218ae2d82233cca636b | |
parent | b774783af8b014eddb2756d66feab15f50a14df7 (diff) |
track-element: Remove constructors for TrackElement from the API
Most of the time the user should not create GESTrackElements
himself, instead he should add a GESAsset to a layer, that will
result in a clip creation and the proper TrackElements to be
created and added to the tracks.
The case of effects and overlays is a bit different as the user should
create the TrackElement and add them to a clip.
-rw-r--r-- | docs/libs/ges-sections.txt | 6 | ||||
-rw-r--r-- | ges/ges-audio-test-source.h | 2 | ||||
-rw-r--r-- | ges/ges-audio-uri-source.h | 2 | ||||
-rw-r--r-- | ges/ges-image-source.h | 2 | ||||
-rw-r--r-- | ges/ges-internal.h | 11 | ||||
-rw-r--r-- | ges/ges-title-source.h | 2 | ||||
-rw-r--r-- | ges/ges-video-test-source.h | 2 | ||||
-rw-r--r-- | ges/ges-video-uri-source.h | 2 |
8 files changed, 11 insertions, 18 deletions
diff --git a/docs/libs/ges-sections.txt b/docs/libs/ges-sections.txt index 1e1255e7..2312a548 100644 --- a/docs/libs/ges-sections.txt +++ b/docs/libs/ges-sections.txt @@ -227,7 +227,6 @@ ges_audio_source_get_type <FILE>ges-video-uri-source</FILE> <TITLE>GESVideoUriSource</TITLE> GESVideoUriSource -ges_video_uri_source_new <SUBSECTION Standard> GESVideoUriSourceClass GESVideoUriSourcePrivate @@ -244,7 +243,6 @@ ges_video_uri_source_get_type <FILE>ges-audio-uri-source</FILE> <TITLE>GESAudioUriSource</TITLE> GESAudioUriSource -ges_audio_uri_source_new <SUBSECTION Standard> GESAudioUriSourceClass GESAudioUriSourcePrivate @@ -261,7 +259,6 @@ ges_audio_uri_source_get_type <FILE>ges-image-source</FILE> <TITLE>GESImageSource</TITLE> GESImageSource -ges_image_source_new <SUBSECTION Standard> GESImageSourcePrivate GES_IS_IMAGE_SOURCE @@ -763,7 +760,6 @@ GES_TYPE_OVERLAY_TEXT_CLIP <FILE>ges-video-test-source</FILE> <TITLE>GESVideoTestSource</TITLE> GESVideoTestSource -ges_video_test_source_new ges_video_test_source_set_pattern ges_video_test_source_get_pattern <SUBSECTION Standard> @@ -782,7 +778,6 @@ GES_TYPE_VIDEO_TEST_SOURCE <FILE>ges-audio-test-source</FILE> <TITLE>GESAudioTestSource</TITLE> GESAudioTestSource -ges_audio_test_source_new ges_audio_test_source_set_freq ges_audio_test_source_set_volume ges_audio_test_source_get_freq @@ -803,7 +798,6 @@ GES_IS_AUDIO_TEST_SOURCE_CLASS <FILE>ges-title-source</FILE> <TITLE>GESTitleSource</TITLE> GESTitleSource -ges_title_source_new ges_title_source_set_text ges_title_source_set_font_desc ges_title_source_set_halignment diff --git a/ges/ges-audio-test-source.h b/ges/ges-audio-test-source.h index 3ecab1da..e1e4cb2c 100644 --- a/ges/ges-audio-test-source.h +++ b/ges/ges-audio-test-source.h @@ -81,8 +81,6 @@ void ges_audio_test_source_set_volume(GESAudioTestSource *self, double ges_audio_test_source_get_freq(GESAudioTestSource *self); double ges_audio_test_source_get_volume(GESAudioTestSource *self); - -GESAudioTestSource* ges_audio_test_source_new (void); G_END_DECLS #endif /* _GES_AUDIO_TEST_SOURCE */ diff --git a/ges/ges-audio-uri-source.h b/ges/ges-audio-uri-source.h index a010217d..2a4f2e42 100644 --- a/ges/ges-audio-uri-source.h +++ b/ges/ges-audio-uri-source.h @@ -71,8 +71,6 @@ struct _GESAudioUriSourceClass { GType ges_audio_uri_source_get_type (void); -GESAudioUriSource* ges_audio_uri_source_new (gchar *uri); - G_END_DECLS #endif /* _GES_AUDIO_URI_SOURCE */ diff --git a/ges/ges-image-source.h b/ges/ges-image-source.h index 56331436..f4f27058 100644 --- a/ges/ges-image-source.h +++ b/ges/ges-image-source.h @@ -70,8 +70,6 @@ struct _GESImageSourceClass { GType ges_image_source_get_type (void); -GESImageSource* ges_image_source_new (gchar *uri); - G_END_DECLS #endif /* _GES_IMAGE_SOURCE */ diff --git a/ges/ges-internal.h b/ges/ges-internal.h index 06c60ddf..88ac5d33 100644 --- a/ges/ges-internal.h +++ b/ges/ges-internal.h @@ -293,4 +293,15 @@ G_GNUC_INTERNAL GstElement *ges_source_create_topbin (const gchar * bin_name, Gs G_GNUC_INTERNAL void ges_track_set_caps (GESTrack *track, const GstCaps *caps); + +/********************************************* + * GESTrackElement subclasses contructores * + ********************************************/ +G_GNUC_INTERNAL GESAudioTestSource * ges_audio_test_source_new (void); +G_GNUC_INTERNAL GESAudioUriSource * ges_audio_uri_source_new (gchar *uri); +G_GNUC_INTERNAL GESVideoUriSource * ges_video_uri_source_new (gchar *uri); +G_GNUC_INTERNAL GESImageSource * ges_image_source_new (gchar *uri); +G_GNUC_INTERNAL GESTitleSource * ges_title_source_new (void); +G_GNUC_INTERNAL GESVideoTestSource * ges_video_test_source_new (void); + #endif /* __GES_INTERNAL_H__ */ diff --git a/ges/ges-title-source.h b/ges/ges-title-source.h index 4848a460..e4d4e13b 100644 --- a/ges/ges-title-source.h +++ b/ges/ges-title-source.h @@ -106,8 +106,6 @@ const guint32 ges_title_source_get_background_color (GESTitleSource *source); const gdouble ges_title_source_get_xpos (GESTitleSource *source); const gdouble ges_title_source_get_ypos (GESTitleSource *source); -GESTitleSource* ges_title_source_new (void); - G_END_DECLS #endif /* _GES_TITLE_SOURCE */ diff --git a/ges/ges-video-test-source.h b/ges/ges-video-test-source.h index b6245c4d..f844e42a 100644 --- a/ges/ges-video-test-source.h +++ b/ges/ges-video-test-source.h @@ -69,8 +69,6 @@ struct _GESVideoTestSourceClass { GType ges_video_test_source_get_type (void); -GESVideoTestSource* ges_video_test_source_new (void); - void ges_video_test_source_set_pattern(GESVideoTestSource *self, GESVideoTestPattern pattern); diff --git a/ges/ges-video-uri-source.h b/ges/ges-video-uri-source.h index 7fb58622..e398da76 100644 --- a/ges/ges-video-uri-source.h +++ b/ges/ges-video-uri-source.h @@ -71,8 +71,6 @@ struct _GESVideoUriSourceClass { GType ges_video_uri_source_get_type (void); -GESVideoUriSource* ges_video_uri_source_new (gchar *uri); - G_END_DECLS #endif /* _GES_VIDEO_URI_SOURCE */ |