mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
ges: Little fixes to timeline_object_g(s)et_supprted_formats
This commit is contained in:
parent
c0d60b9d17
commit
4d802c1241
2 changed files with 51 additions and 47 deletions
|
@ -692,15 +692,6 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-method set_supported_formats
|
||||
(of-object "GESTimelineObject")
|
||||
(c-name "ges_timeline_object_set_supported_formats")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("GESTrackType" "supportedformats")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method set_is_image
|
||||
(of-object "GESTimelineFileSource")
|
||||
(c-name "ges_timeline_filesource_set_is_image")
|
||||
|
@ -734,12 +725,6 @@
|
|||
(return-type "const-gchar*")
|
||||
)
|
||||
|
||||
(define-method get_supported_formats
|
||||
(of-object "GESTimelineObject")
|
||||
(c-name "ges_timeline_object_get_supported_formats")
|
||||
(return-type "GESTrackType")
|
||||
)
|
||||
|
||||
(define-method get_supported_formats
|
||||
(of-object "GESTimelineFileSource")
|
||||
(c-name "ges_timeline_filesource_get_supported_formats")
|
||||
|
@ -1105,6 +1090,20 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-method get_supported_formats
|
||||
(of-object "GESTimelineObject")
|
||||
(c-name "ges_timeline_object_get_supported_formats")
|
||||
(return-type "GESTrackType")
|
||||
)
|
||||
|
||||
(define-method set_supported_formats
|
||||
(of-object "GESTimelineObject")
|
||||
(c-name "ges_timeline_object_set_supported_formats")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("GESTrackType" "supportedformats")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method objects_set_locked
|
||||
(of-object "GESTimelineObject")
|
||||
|
|
|
@ -1380,6 +1380,43 @@ ges_timeline_object_copy (GESTimelineObject * object, gboolean * deep)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_timeline_object_set_supported_formats:
|
||||
* @object: the #GESTimelineObject to set supported formats on
|
||||
* @supportedformats: the #GESTrackType defining formats supported by @object
|
||||
*
|
||||
* Sets the formats supported by the file.
|
||||
*
|
||||
* Since: 0.10.XX
|
||||
*/
|
||||
void
|
||||
ges_timeline_object_set_supported_formats (GESTimelineObject * object,
|
||||
GESTrackType supportedformats)
|
||||
{
|
||||
g_return_if_fail (GES_IS_TIMELINE_OBJECT (object));
|
||||
|
||||
object->priv->supportedformats = supportedformats;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_timeline_object_get_supported_formats:
|
||||
* @object: the #GESTimelineObject
|
||||
*
|
||||
* Get the formats supported by @object.
|
||||
*
|
||||
* Returns: The formats supported by @object.
|
||||
*
|
||||
* Since: 0.10.XX
|
||||
*/
|
||||
GESTrackType
|
||||
ges_timeline_object_get_supported_formats (GESTimelineObject * object)
|
||||
{
|
||||
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object),
|
||||
GES_TRACK_TYPE_UNKNOWN);
|
||||
|
||||
return object->priv->supportedformats;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_timeline_object_objects_set_locked:
|
||||
* @object: the #GESTimelineObject
|
||||
|
@ -1432,38 +1469,6 @@ update_height (GESTimelineObject * object)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_timeline_object_set_supported_formats:
|
||||
* @self: the #GESTimelineObject to set supported formats on
|
||||
* @supportedformats: the #GESTrackType defining formats supported by @self
|
||||
*
|
||||
* Sets the formats supported by the file.
|
||||
*
|
||||
* Since: 0.10.XX
|
||||
*/
|
||||
void
|
||||
ges_timeline_object_set_supported_formats (GESTimelineObject * self,
|
||||
GESTrackType supportedformats)
|
||||
{
|
||||
self->priv->supportedformats = supportedformats;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_timeline_object_get_supported_formats:
|
||||
* @self: the #GESTimelineObject
|
||||
*
|
||||
* Get the formats supported by @self.
|
||||
*
|
||||
* Returns: The formats supported by @self.
|
||||
*
|
||||
* Since: 0.10.XX
|
||||
*/
|
||||
GESTrackType
|
||||
ges_timeline_object_get_supported_formats (GESTimelineObject * self)
|
||||
{
|
||||
return self->priv->supportedformats;
|
||||
}
|
||||
|
||||
/*
|
||||
* PROPERTY NOTIFICATIONS FROM TRACK OBJECTS
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue