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.
This commit is contained in:
Thibault Saunier 2013-12-24 15:34:51 +01:00
parent b774783af8
commit d00283f309
8 changed files with 11 additions and 18 deletions

View file

@ -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

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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__ */

View file

@ -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 */

View file

@ -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);

View file

@ -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 */