Commit d69964fd authored by Thibault Saunier's avatar Thibault Saunier
Browse files

Rename GESTrackObject to GESTrackElement

parent dc04fd00
......@@ -26,7 +26,7 @@ LOCAL_SRC_FILES := \
ges-overlay-clip.c \
ges-text-overlay-clip.c \
ges-track.c \
ges-track-object.c \
ges-track-element.c \
ges-track-source.c \
ges-track-operation.c \
ges-track-filesource.c \
......
......@@ -43,7 +43,7 @@ platform as well as Windows. It is released under the GNU Library General Public
<xi:include href="xml/ges-overlay-clip.xml"/>
<xi:include href="xml/ges-base-effect-clip.xml"/>
<xi:include href="xml/ges-track.xml"/>
<xi:include href="xml/ges-track-object.xml"/>
<xi:include href="xml/ges-track-element.xml"/>
<xi:include href="xml/ges-track-source.xml"/>
<xi:include href="xml/ges-track-effect.xml"/>
<xi:include href="xml/ges-track-operation.xml"/>
......
......@@ -89,43 +89,43 @@ GES_TYPE_TRACK
</SECTION>
<SECTION>
<FILE>ges-track-object</FILE>
<TITLE>GESTrackObject</TITLE>
GESTrackObject
GESTrackObjectClass
ges_track_object_set_max_duration
ges_track_object_set_active
ges_track_object_set_locked
ges_track_object_is_locked
ges_track_object_get_track
ges_track_object_get_clip
ges_track_object_get_gnlobject
ges_track_object_get_element
ges_track_object_get_max_duration
ges_track_object_is_active
ges_track_object_lookup_child
ges_track_object_list_children_properties
ges_track_object_set_child_property
ges_track_object_set_child_properties
ges_track_object_set_child_property_valist
ges_track_object_set_child_property_by_pspec
ges_track_object_get_child_property
ges_track_object_get_child_properties
ges_track_object_get_child_property_valist
ges_track_object_get_child_property_by_pspec
ges_track_object_edit
ges_track_object_copy
<FILE>ges-track-element</FILE>
<TITLE>GESTrackElement</TITLE>
GESTrackElement
GESTrackElementClass
ges_track_element_set_max_duration
ges_track_element_set_active
ges_track_element_set_locked
ges_track_element_is_locked
ges_track_element_get_track
ges_track_element_get_clip
ges_track_element_get_gnlobject
ges_track_element_get_element
ges_track_element_get_max_duration
ges_track_element_is_active
ges_track_element_lookup_child
ges_track_element_list_children_properties
ges_track_element_set_child_property
ges_track_element_set_child_properties
ges_track_element_set_child_property_valist
ges_track_element_set_child_property_by_pspec
ges_track_element_get_child_property
ges_track_element_get_child_properties
ges_track_element_get_child_property_valist
ges_track_element_get_child_property_by_pspec
ges_track_element_edit
ges_track_element_copy
<SUBSECTION Standard>
GESTrackObjectPrivate
ges_track_object_set_clip
ges_track_object_set_track
ges_track_object_get_type
GES_IS_TRACK_OBJECT
GES_IS_TRACK_OBJECT_CLASS
GES_TRACK_OBJECT
GES_TRACK_OBJECT_CLASS
GES_TRACK_OBJECT_GET_CLASS
GES_TYPE_TRACK_OBJECT
GESTrackElementPrivate
ges_track_element_set_clip
ges_track_element_set_track
ges_track_element_get_type
GES_IS_TRACK_ELEMENT
GES_IS_TRACK_ELEMENT_CLASS
GES_TRACK_ELEMENT
GES_TRACK_ELEMENT_CLASS
GES_TRACK_ELEMENT_GET_CLASS
GES_TYPE_TRACK_ELEMENT
</SECTION>
<SECTION>
......@@ -356,12 +356,12 @@ GES_TIMELINE_ELEMENT_GET_CLASS
<TITLE>GESClip</TITLE>
GESClip
GESClipClass
GESCreateTrackObjectFunc
GESCreateTrackObjectsFunc
GESFillTrackObjectFunc
GESCreateTrackElementFunc
GESCreateTrackElementsFunc
GESFillTrackElementFunc
ges_clip_get_layer
ges_clip_find_track_object
ges_clip_add_track_object
ges_clip_find_track_element
ges_clip_add_track_element
ges_clip_add_asset
ges_clip_get_top_effects
ges_clip_get_top_effect_position
......@@ -376,15 +376,15 @@ ges_clip_objects_set_locked
ges_clip_set_max_duration
<SUBSECTION Standard>
GES_CLIP_HEIGHT
ges_clip_create_track_objects
ges_clip_create_track_object
ges_clip_fill_track_object
ges_clip_create_track_elements
ges_clip_create_track_element
ges_clip_fill_track_element
ges_clip_is_moving_from_layer
ges_clip_release_track_object
ges_clip_get_track_objects
ges_clip_release_track_element
ges_clip_get_track_elements
ges_clip_set_layer
ges_clip_set_moving_from_layer
ges_clip_lock_track_objects
ges_clip_lock_track_elements
GESClipPrivate
GES_IS_CLIP
GES_IS_CLIP_CLASS
......@@ -570,7 +570,7 @@ ges_transition_clip_get_type
<FILE>ges-custom-source-clip</FILE>
<TITLE>GESCustomSourceClip</TITLE>
GESCustomSourceClip
GESFillTrackObjectUserFunc
GESFillTrackElementUserFunc
ges_custom_source_clip_new
<SUBSECTION Standard>
GESCustomSourceClipClass
......@@ -1004,19 +1004,19 @@ GES_ASSET_CLIP_GET_CLASS
<SECTION>
<FILE>ges-asset-track-object</FILE>
<TITLE>GESAssetTrackObject</TITLE>
GESAssetTrackObject
ges_asset_track_object_get_type
ges_asset_track_object_get_track_type
ges_asset_track_object_set_track_type
<TITLE>GESAssetTrackElement</TITLE>
GESAssetTrackElement
ges_asset_track_element_get_type
ges_asset_track_element_get_track_type
ges_asset_track_element_set_track_type
<SUBSECTION Standard>
GESAssetTrackObjectPrivate
GES_ASSET_TRACK_OBJECT
GES_TYPE_ASSET_TRACK_OBJECT
GES_ASSET_TRACK_OBJECT_CLASS
GES_IS_ASSET_TRACK_OBJECT
GES_IS_ASSET_TRACK_OBJECT_CLASS
GES_ASSET_TRACK_OBJECT_GET_CLASS
GESAssetTrackElementPrivate
GES_ASSET_TRACK_ELEMENT
GES_TYPE_ASSET_TRACK_ELEMENT
GES_ASSET_TRACK_ELEMENT_CLASS
GES_IS_ASSET_TRACK_ELEMENT
GES_IS_ASSET_TRACK_ELEMENT_CLASS
GES_ASSET_TRACK_ELEMENT_GET_CLASS
</SECTION>
<SECTION>
......
......@@ -26,7 +26,7 @@ ges_track_audio_transition_get_type
ges_track_filesource_get_type
ges_track_get_type
ges_track_image_source_get_type
ges_track_object_get_type
ges_track_element_get_type
ges_track_effect_get_type
ges_track_parse_launch_effect_get_type
ges_track_operation_get_type
......
......@@ -30,7 +30,7 @@ libges_@GST_API_VERSION@_la_SOURCES = \
ges-overlay-clip.c \
ges-text-overlay-clip.c \
ges-track.c \
ges-track-object.c \
ges-track-element.c \
ges-track-source.c \
ges-track-operation.c \
ges-track-filesource.c \
......@@ -86,7 +86,7 @@ libges_@GST_API_VERSION@include_HEADERS = \
ges-track-effect.h \
ges-track-parse-launch-effect.h \
ges-track.h \
ges-track-object.h \
ges-track-element.h \
ges-track-source.h \
ges-track-operation.h \
ges-track-filesource.h \
......
......@@ -23,7 +23,7 @@
*
* The #GESUriClipAsset is a special #GESAsset specilized in #GESClip.
* it is mostly used to get information about the #GESTrackType-s the objects extracted
* from it can potentialy create #GESTrackObject for.
* from it can potentialy create #GESTrackElement for.
*/
#include "ges-asset-clip.h"
......@@ -152,7 +152,7 @@ ges_asset_clip_class_init (GESAssetClipClass * self_class)
* @self: a #GESAssetClip
* @supportedformats: The track types supported by the GESAssetClip
*
* Sets track types for which objects extracted from @self can create #GESTrackObject
* Sets track types for which objects extracted from @self can create #GESTrackElement
*/
void
ges_asset_clip_set_supported_formats (GESAssetClip * self,
......@@ -167,9 +167,9 @@ ges_asset_clip_set_supported_formats (GESAssetClip * self,
* ges_asset_clip_get_supported_formats:
* @self: a #GESAssetClip
*
* Gets track types for which objects extracted from @self can create #GESTrackObject
* Gets track types for which objects extracted from @self can create #GESTrackElement
*
* Returns: The track types on which @self will create TrackObject when added to
* Returns: The track types on which @self will create TrackElement when added to
* a layer
*/
GESTrackType
......
......@@ -20,7 +20,7 @@
/**
* SECTION: ges-asset-track-object
* @short_description: A GESAsset subclass specialized in GESTrackObject extraction
* @short_description: A GESAsset subclass specialized in GESTrackElement extraction
*/
#include "ges-asset-track-object.h"
......@@ -34,9 +34,9 @@ enum
static GParamSpec *properties[PROP_LAST];
G_DEFINE_TYPE (GESAssetTrackObject, ges_asset_track_object, GES_TYPE_ASSET);
G_DEFINE_TYPE (GESAssetTrackElement, ges_asset_track_element, GES_TYPE_ASSET);
struct _GESAssetTrackObjectPrivate
struct _GESAssetTrackElementPrivate
{
GESTrackType type;
};
......@@ -45,7 +45,7 @@ static void
_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
GESAssetTrackObject *asset = GES_ASSET_TRACK_OBJECT (object);
GESAssetTrackElement *asset = GES_ASSET_TRACK_ELEMENT (object);
switch (property_id) {
case PROP_TRACK_TYPE:
......@@ -60,7 +60,7 @@ static void
_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
GESAssetTrackObject *asset = GES_ASSET_TRACK_OBJECT (object);
GESAssetTrackElement *asset = GES_ASSET_TRACK_ELEMENT (object);
switch (property_id) {
case PROP_TRACK_TYPE:
......@@ -72,11 +72,11 @@ _set_property (GObject * object, guint property_id,
}
static void
ges_asset_track_object_class_init (GESAssetTrackObjectClass * klass)
ges_asset_track_element_class_init (GESAssetTrackElementClass * klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
g_type_class_add_private (klass, sizeof (GESAssetTrackObjectPrivate));
g_type_class_add_private (klass, sizeof (GESAssetTrackElementPrivate));
object_class->get_property = _get_property;
object_class->set_property = _set_property;
......@@ -96,47 +96,47 @@ ges_asset_track_object_class_init (GESAssetTrackObjectClass * klass)
}
static void
ges_asset_track_object_init (GESAssetTrackObject * self)
ges_asset_track_element_init (GESAssetTrackElement * self)
{
GESAssetTrackObjectPrivate *priv;
GESAssetTrackElementPrivate *priv;
priv = self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
GES_TYPE_ASSET_TRACK_OBJECT, GESAssetTrackObjectPrivate);
GES_TYPE_ASSET_TRACK_ELEMENT, GESAssetTrackElementPrivate);
priv->type = GES_TRACK_TYPE_UNKNOWN;
}
/**
* ges_asset_track_object_set_track_type:
* ges_asset_track_element_set_track_type:
* @asset: A #GESAssetObject
* @type: A #GESTrackType
*
* Set the #GESAssetTrackType the #GESTrackObject extracted from @self
* Set the #GESAssetTrackType the #GESTrackElement extracted from @self
* should get into
*/
void
ges_asset_track_object_set_track_type (GESAssetTrackObject * asset,
ges_asset_track_element_set_track_type (GESAssetTrackElement * asset,
GESTrackType type)
{
g_return_if_fail (GES_IS_ASSET_TRACK_OBJECT (asset));
g_return_if_fail (GES_IS_ASSET_TRACK_ELEMENT (asset));
asset->priv->type = type;
}
/**
* ges_asset_track_object_get_track_type:
* ges_asset_track_element_get_track_type:
* @asset: A #GESAssetObject
*
* Get the GESAssetTrackType the #GESTrackObject extracted from @self
* Get the GESAssetTrackType the #GESTrackElement extracted from @self
* should get into
*
* Returns: a #GESTrackType
*/
const GESTrackType
ges_asset_track_object_get_track_type (GESAssetTrackObject * asset)
ges_asset_track_element_get_track_type (GESAssetTrackElement * asset)
{
g_return_val_if_fail (GES_IS_ASSET_TRACK_OBJECT (asset),
g_return_val_if_fail (GES_IS_ASSET_TRACK_ELEMENT (asset),
GES_TRACK_TYPE_UNKNOWN);
return asset->priv->type;
......
......@@ -17,8 +17,8 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef _GES_ASSET_TRACK_OBJECT_
#define _GES_ASSET_TRACK_OBJECT_
#ifndef _GES_ASSET_TRACK_ELEMENT_
#define _GES_ASSET_TRACK_ELEMENT_
#include <glib-object.h>
#include <gio/gio.h>
......@@ -27,38 +27,38 @@
G_BEGIN_DECLS
#define GES_TYPE_ASSET_TRACK_OBJECT ges_asset_track_object_get_type()
#define GES_ASSET_TRACK_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_ASSET_TRACK_OBJECT, GESAssetTrackObject))
#define GES_ASSET_TRACK_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_ASSET_TRACK_OBJECT, GESAssetTrackObjectClass))
#define GES_IS_ASSET_TRACK_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_ASSET_TRACK_OBJECT))
#define GES_IS_ASSET_TRACK_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_ASSET_TRACK_OBJECT))
#define GES_ASSET_TRACK_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_ASSET_TRACK_OBJECT, GESAssetTrackObjectClass))
#define GES_TYPE_ASSET_TRACK_ELEMENT ges_asset_track_element_get_type()
#define GES_ASSET_TRACK_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_ASSET_TRACK_ELEMENT, GESAssetTrackElement))
#define GES_ASSET_TRACK_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_ASSET_TRACK_ELEMENT, GESAssetTrackElementClass))
#define GES_IS_ASSET_TRACK_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_ASSET_TRACK_ELEMENT))
#define GES_IS_ASSET_TRACK_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_ASSET_TRACK_ELEMENT))
#define GES_ASSET_TRACK_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_ASSET_TRACK_ELEMENT, GESAssetTrackElementClass))
typedef struct _GESAssetTrackObjectPrivate GESAssetTrackObjectPrivate;
typedef struct _GESAssetTrackElementPrivate GESAssetTrackElementPrivate;
GType ges_asset_track_object_get_type (void);
GType ges_asset_track_element_get_type (void);
struct _GESAssetTrackObject
struct _GESAssetTrackElement
{
GESAsset parent;
/* <private> */
GESAssetTrackObjectPrivate *priv;
GESAssetTrackElementPrivate *priv;
/* Padding for API extension */
gpointer __ges_reserved[GES_PADDING];
};
struct _GESAssetTrackObjectClass
struct _GESAssetTrackElementClass
{
GESAssetClass parent_class;
gpointer _ges_reserved[GES_PADDING];
};
const GESTrackType ges_asset_track_object_get_track_type (GESAssetTrackObject *asset);
void ges_asset_track_object_set_track_type (GESAssetTrackObject * asset, GESTrackType type);
const GESTrackType ges_asset_track_element_get_track_type (GESAssetTrackElement *asset);
void ges_asset_track_element_set_track_type (GESAssetTrackElement * asset, GESTrackType type);
G_END_DECLS
#endif /* _GES_ASSET_TRACK_OBJECT */
#endif /* _GES_ASSET_TRACK_ELEMENT */
......@@ -24,7 +24,7 @@
*
* The Assets in the GStreamer Editing Services represent the ressources
* that can be used. You can create assets for any type that implements the #GESExtractable
* interface, for example #GESClips, #GESFormatter, and #GESTrackObject do implement it.
* interface, for example #GESClips, #GESFormatter, and #GESTrackElement do implement it.
* This means that asssets will represent for example a #GESUriClips, #GESTrackEffect etc,
* and then you can extract objects of those types with the appropriate parameters from the asset
* using the #ges_asset_extract method:
......
......@@ -77,10 +77,10 @@ _height_changed_cb (GESClip * obj, GParamSpec * arg G_GNUC_UNUSED,
}
static void
_track_changed_cb (GESTrackObject * obj, GParamSpec * arg G_GNUC_UNUSED,
_track_changed_cb (GESTrackElement * obj, GParamSpec * arg G_GNUC_UNUSED,
GESAutoTransition * self)
{
if (ges_track_object_get_track (obj) == NULL) {
if (ges_track_element_get_track (obj) == NULL) {
GST_DEBUG_OBJECT (self, "Neighboor %" GST_PTR_FORMAT
" removed from track ... auto destructing", obj);
......@@ -129,8 +129,8 @@ ges_auto_transition_class_init (GESAutoTransitionClass * klass)
GESAutoTransition *
ges_auto_transition_new (GESTrackObject * transition,
GESTrackObject * previous_source, GESTrackObject * next_source)
ges_auto_transition_new (GESTrackElement * transition,
GESTrackElement * previous_source, GESTrackElement * next_source)
{
GESAutoTransition *self = g_object_new (GES_TYPE_AUTO_TRANSITION, NULL);
......@@ -138,9 +138,9 @@ ges_auto_transition_new (GESTrackObject * transition,
self->next_source = next_source;
self->transition = transition;
self->previous_clip = ges_track_object_get_clip (previous_source);
self->next_clip = ges_track_object_get_clip (next_source);
self->transition_clip = ges_track_object_get_clip (transition);
self->previous_clip = ges_track_element_get_clip (previous_source);
self->next_clip = ges_track_element_get_clip (next_source);
self->transition_clip = ges_track_element_get_clip (transition);
g_signal_connect (previous_source, "notify::start",
G_CALLBACK (neighbour_changed_cb), self);
......
......@@ -21,7 +21,7 @@
#define _GES_AUTO_TRANSITION_H_
#include <glib-object.h>
#include "ges-track-object.h"
#include "ges-track-element.h"
#include "ges-clip.h"
#include "ges-timeline-layer.h"
......@@ -52,9 +52,9 @@ struct _GESAutoTransition
GObject parent_instance;
/* <read only and construct only> */
GESTrackObject *previous_source;
GESTrackObject *next_source;
GESTrackObject *transition;
GESTrackElement *previous_source;
GESTrackElement *next_source;
GESTrackElement *transition;
GESTimelineLayer *layer;
......@@ -70,9 +70,9 @@ struct _GESAutoTransition
GType ges_auto_transition_get_type (void) G_GNUC_CONST;
GESAutoTransition * ges_auto_transition_new (GESTrackObject * transition,
GESTrackObject * previous_source,
GESTrackObject * next_source);
GESAutoTransition * ges_auto_transition_new (GESTrackElement * transition,
GESTrackElement * previous_source,
GESTrackElement * next_source);
G_END_DECLS
#endif /* _GES_AUTO_TRANSITION_H_ */
......@@ -34,7 +34,7 @@ G_DEFINE_ABSTRACT_TYPE (GESBaseXmlFormatter, ges_base_xml_formatter,
typedef struct PendingEffects
{
gchar *track_id;
GESTrackObject *tckobj;
GESTrackElement *trackelement;
GstStructure *children_properties;
GstStructure *properties;
......@@ -58,7 +58,7 @@ typedef struct PendingClip
GList *effects;
/* TODO Implement asset effect management
* PendingTrackObjects *track_objects; */
* PendingTrackElements *track_elements; */
} PendingClip;
typedef struct LayerEntry
......@@ -385,12 +385,12 @@ _loading_done (GESFormatter * self)
static void
_set_child_property (GQuark field_id, const GValue * value,
GESTrackObject * effect)
GESTrackElement * effect)
{
GParamSpec *pspec;
GstElement *element;
if (!ges_track_object_lookup_child (effect,
if (!ges_track_element_lookup_child (effect,
g_quark_to_string (field_id), &element, &pspec))
return;
......@@ -435,34 +435,34 @@ _add_object_to_layer (GESBaseXmlFormatterPrivate * priv, const gchar * id,
}
static void
_add_track_object (GESFormatter * self, GESClip * clip,
GESTrackObject * tckobj, const gchar * track_id,
_add_track_element (GESFormatter * self, GESClip * clip,
GESTrackElement * trackelement, const gchar * track_id,
GstStructure * children_properties, GstStructure * properties)
{
GESBaseXmlFormatterPrivate *priv = _GET_PRIV (self);
GESTrack *track = g_hash_table_lookup (priv->tracks, track_id);
if (track == NULL) {
GST_WARNING_OBJECT (self, "No track with id %s, can not add tckobj",
GST_WARNING_OBJECT (self, "No track with id %s, can not add trackelement",
track_id);
gst_object_unref (tckobj);
gst_object_unref (trackelement);
return;
}
GST_DEBUG_OBJECT (self, "Adding track_object: %" GST_PTR_FORMAT
" To : %" GST_PTR_FORMAT, tckobj, clip);
GST_DEBUG_OBJECT (self, "Adding track_element: %" GST_PTR_FORMAT
" To : %" GST_PTR_FORMAT, trackelement, clip);
ges_clip_add_track_object (clip, tckobj);
ges_track_add_object (track, tckobj);
ges_clip_add_track_element (clip, trackelement);
ges_track_add_object (track, trackelement);
gst_structure_foreach (children_properties,
(GstStructureForeachFunc) _set_child_property, tckobj);
(GstStructureForeachFunc) _set_child_property, trackelement);
}
static void
_free_pending_effect (PendingEffects * pend)
{
g_free (pend->track_id);
gst_object_unref (pend->tckobj);
gst_object_unref (pend->trackelement);
if (pend->children_properties)
gst_structure_free (pend->children_properties);
if (pend->properties)
......@@ -575,7 +575,7 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, PendingAsset * passet)
PendingEffects *peffect = (PendingEffects *) tmpeffect->data;
/* We keep a ref as _free_pending_effect unrefs it */
_add_track_object (self, clip, gst_object_ref (peffect->tckobj),
_add_track_element (self, clip, gst_object_ref (peffect->trackelement),
peffect->track_id, peffect->children_properties, peffect->properties);
}
_free_pending_clip (priv, pend);
......@@ -830,12 +830,12 @@ ges_base_xml_formatter_add_track (GESBaseXmlFormatter * self,
}
void
ges_base_xml_formatter_add_track_object (GESBaseXmlFormatter * self,
GType track_object_type, const gchar * asset_id, const gchar * track_id,
ges_base_xml_formatter_add_track_element (GESBaseXmlFormatter * self,
GType track_element_type, const gchar * asset_id, const gchar * track_id,
const gchar * timeline_obj_id, GstStructure * children_properties,
GstStructure * properties, const gchar * metadatas, GError ** error)
{
GESTrackObject *tckobj;
GESTrackElement *trackelement;
GError *err = NULL;
GESAsset *asset = NULL;
......@@ -844,37 +844,37 @@ ges_base_xml_formatter_add_track_object (GESBaseXmlFormatter * self,
if (priv->check_only)
return;
if (g_type_is_a (track_object_type, GES_TYPE_TRACK_OBJECT) == FALSE) {
GST_DEBUG_OBJECT (self, "%s is not a TrackObject, can not create it",
g_type_name (track_object_type));
if (g_type_is_a (track_element_type, GES_TYPE_TRACK_ELEMENT) == FALSE) {
GST_DEBUG_OBJECT (self, "%s is not a TrackElement, can not create it",
g_type_name (track_element_type));
goto out;
}
if (g_type_is_a (track_object_type, GES_TYPE_TRACK_EFFECT) == FALSE) {
if (g_type_is_a (track_element_type, GES_TYPE_TRACK_EFFECT) == FALSE) {
GST_FIXME_OBJECT (self, "%s currently not supported",
g_type_name (track_object_type));
g_type_name (track_element_type));
goto out;
}
asset = ges_asset_request (track_object_type, asset_id, &err);
asset = ges_asset_request (track_element_type, asset_id, &err);
if (asset == NULL) {
GST_DEBUG_OBJECT (self, "Can not create tckobj %s", asset_id);
GST_DEBUG_OBJECT (self, "Can not create trackelement %s", asset_id);
GST_FIXME_OBJECT (self, "Check if missing plugins etc %s",
err ? err->message : "");
goto out;
}
tckobj = GES_TRACK_OBJECT (ges_asset_extract (asset, NULL));
if (tckobj) {
trackelement = GES_TRACK_ELEMENT (ges_asset_extract (asset, NULL));
if (trackelement