mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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.
This commit is contained in:
parent
d829425fb9
commit
d42923b014
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue