mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 15:36:42 +00:00
fpsdisplaysink:: fix compilation with older GLib
g_object_notify_by_pspec() is new in GLib 2.26, but we only require 2.22.
This commit is contained in:
parent
8b1a61d006
commit
3cadddba83
1 changed files with 8 additions and 0 deletions
|
@ -425,7 +425,11 @@ display_current_fps (gpointer data)
|
||||||
g_free (self->last_message);
|
g_free (self->last_message);
|
||||||
self->last_message = g_strdup (fps_message);
|
self->last_message = g_strdup (fps_message);
|
||||||
GST_OBJECT_UNLOCK (self);
|
GST_OBJECT_UNLOCK (self);
|
||||||
|
#if !GLIB_CHECK_VERSION(2,26,0)
|
||||||
|
g_object_notify ((GObject *) self, "last-message");
|
||||||
|
#else
|
||||||
g_object_notify_by_pspec ((GObject *) self, pspec_last_message);
|
g_object_notify_by_pspec ((GObject *) self, pspec_last_message);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
self->last_frames_rendered = frames_rendered;
|
self->last_frames_rendered = frames_rendered;
|
||||||
|
@ -507,7 +511,11 @@ fps_display_sink_stop (GstFPSDisplaySink * self)
|
||||||
g_free (self->last_message);
|
g_free (self->last_message);
|
||||||
self->last_message = str;
|
self->last_message = str;
|
||||||
GST_OBJECT_UNLOCK (self);
|
GST_OBJECT_UNLOCK (self);
|
||||||
|
#if !GLIB_CHECK_VERSION(2,26,0)
|
||||||
|
g_object_notify ((GObject *) self, "last-message");
|
||||||
|
#else
|
||||||
g_object_notify_by_pspec ((GObject *) self, pspec_last_message);
|
g_object_notify_by_pspec ((GObject *) self, pspec_last_message);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_OBJECT_LOCK (self);
|
GST_OBJECT_LOCK (self);
|
||||||
|
|
Loading…
Reference in a new issue