mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
xmlformatter: Do no allow saving CONSTRUCTONLY properties
This commit is contained in:
parent
350c5a07bf
commit
17b765bfb5
2 changed files with 3 additions and 3 deletions
|
@ -142,10 +142,10 @@ typedef GList * (*GESCreateTrackObjectsFunc) (GESTimelineObject * object, GESTra
|
|||
|
||||
/**
|
||||
* GESTimelineObject:
|
||||
*
|
||||
* The #GESTimelineObject base class.
|
||||
* @trackobjects: (element-type GES.TrackObject): A list of TrackObject
|
||||
* controlled by this TimelineObject sorted by priority. NOTE: Do not modify.
|
||||
*
|
||||
* The #GESTimelineObject base class.
|
||||
*/
|
||||
struct _GESTimelineObject
|
||||
{
|
||||
|
|
|
@ -665,7 +665,7 @@ append_printf_escaped (GString * str, const gchar * format, ...)
|
|||
static inline gboolean
|
||||
_can_serialize_spec (GParamSpec * spec)
|
||||
{
|
||||
if (spec->flags & G_PARAM_WRITABLE
|
||||
if (spec->flags & G_PARAM_WRITABLE && !(spec->flags & G_PARAM_CONSTRUCT_ONLY)
|
||||
&& !g_type_is_a (G_PARAM_SPEC_VALUE_TYPE (spec), G_TYPE_OBJECT)
|
||||
&& g_strcmp0 (spec->name, "name")
|
||||
&& G_PARAM_SPEC_VALUE_TYPE (spec) != G_TYPE_GTYPE)
|
||||
|
|
Loading…
Reference in a new issue