gstreamer: bus: give watch source a name
Tim Müller
tpm at kemper.freedesktop.org
Sun Oct 16 13:14:25 PDT 2011
Module: gstreamer
Branch: master
Commit: d42923b0147211f013d033fed5dde18c0b197dca
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=d42923b0147211f013d033fed5dde18c0b197dca
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date: Sun Oct 16 21:12:07 2011 +0100
bus: give watch source a name
Give our GSource a meaningful name. Source names can be
used for debugging and profiling, for example with
systemtap or gdb.
---
gst/gstbus.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/gst/gstbus.c b/gst/gstbus.c
index a281aeb..9e462e4 100644
--- a/gst/gstbus.c
+++ b/gst/gstbus.c
@@ -820,6 +820,11 @@ gst_bus_create_watch (GstBus * bus)
source = (GstBusSource *) g_source_new (&gst_bus_source_funcs,
sizeof (GstBusSource));
+
+#if GLIB_CHECK_VERSION(2,26,0)
+ g_source_set_name ((GSource *) source, "GStreamer message bus watch");
+#endif
+
source->bus = gst_object_ref (bus);
source->inited = FALSE;
More information about the gstreamer-commits
mailing list