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:
Tim-Philipp Müller 2011-04-14 11:28:58 +01:00
parent 8b1a61d006
commit 3cadddba83

View file

@ -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);