diff --git a/gst/debugutils/fpsdisplaysink.c b/gst/debugutils/fpsdisplaysink.c index b0c763109b..489d88183a 100644 --- a/gst/debugutils/fpsdisplaysink.c +++ b/gst/debugutils/fpsdisplaysink.c @@ -425,7 +425,11 @@ display_current_fps (gpointer data) g_free (self->last_message); self->last_message = g_strdup (fps_message); 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); +#endif } self->last_frames_rendered = frames_rendered; @@ -507,7 +511,11 @@ fps_display_sink_stop (GstFPSDisplaySink * self) g_free (self->last_message); self->last_message = str; 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); +#endif } GST_OBJECT_LOCK (self);