mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
GES*Object: only use g_object_notify_by_pspec if available
This commit is contained in:
parent
a96a483fae
commit
05df4ec7b6
2 changed files with 20 additions and 0 deletions
|
@ -807,7 +807,11 @@ track_object_priority_changed_cb (GESTrackObject * child,
|
|||
/* FIXME : We only grow the height */
|
||||
if (object->height < (max_prio - min_prio + 1)) {
|
||||
object->height = max_prio - min_prio + 1;
|
||||
#if GLIB_CHECK_VERSION(2,26,0)
|
||||
g_object_notify_by_pspec (G_OBJECT (object), properties[PROP_HEIGHT]);
|
||||
#else
|
||||
g_object_notify (G_OBJECT (object), "height");
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
/* Or update the parent priority */
|
||||
|
|
|
@ -287,7 +287,11 @@ void
|
|||
ges_track_object_set_start (GESTrackObject * object, guint64 start)
|
||||
{
|
||||
if (ges_track_object_set_start_internal (object, start))
|
||||
#if GLIB_CHECK_VERSION(2,26,0)
|
||||
g_object_notify_by_pspec (G_OBJECT (object), properties[PROP_START]);
|
||||
#else
|
||||
g_object_notify (G_OBJECT (object), "start");
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
|
@ -319,7 +323,11 @@ void
|
|||
ges_track_object_set_inpoint (GESTrackObject * object, guint64 inpoint)
|
||||
{
|
||||
if (ges_track_object_set_inpoint_internal (object, inpoint))
|
||||
#if GLIB_CHECK_VERSION(2,26,0)
|
||||
g_object_notify_by_pspec (G_OBJECT (object), properties[PROP_INPOINT]);
|
||||
#else
|
||||
g_object_notify (G_OBJECT (object), "in-point");
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
|
@ -352,7 +360,11 @@ void
|
|||
ges_track_object_set_duration (GESTrackObject * object, guint64 duration)
|
||||
{
|
||||
if (ges_track_object_set_duration_internal (object, duration))
|
||||
#if GLIB_CHECK_VERSION(2,26,0)
|
||||
g_object_notify_by_pspec (G_OBJECT (object), properties[PROP_DURATION]);
|
||||
#else
|
||||
g_object_notify (G_OBJECT (object), "duration");
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
|
@ -389,7 +401,11 @@ void
|
|||
ges_track_object_set_priority (GESTrackObject * object, guint32 priority)
|
||||
{
|
||||
if (ges_track_object_set_priority_internal (object, priority))
|
||||
#if GLIB_CHECK_VERSION(2,26,0)
|
||||
g_object_notify_by_pspec (G_OBJECT (object), properties[PROP_PRIORITY]);
|
||||
#else
|
||||
g_object_notify (G_OBJECT (object), "priority");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue