summaryrefslogtreecommitdiff
path: root/gst/debugutils
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-04-14 11:28:58 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-04-14 11:28:58 +0100
commit3cadddba83beed58140c4d8540657e3e9d69d33c (patch)
tree099a3204840415b2ebb80410d5aa7dc9f14a8261 /gst/debugutils
parent8b1a61d006c0d7164f4d6d68287d0f6f3149af0a (diff)
downloadgstreamer-plugins-bad-3cadddba83beed58140c4d8540657e3e9d69d33c.tar.gz
fpsdisplaysink:: fix compilation with older GLib
g_object_notify_by_pspec() is new in GLib 2.26, but we only require 2.22.
Diffstat (limited to 'gst/debugutils')
-rw-r--r--gst/debugutils/fpsdisplaysink.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/debugutils/fpsdisplaysink.c b/gst/debugutils/fpsdisplaysink.c
index b0c763109..489d88183 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);