[gst-debugger] debugserver: set object name if available, otherwise - typename



commit c8b4281a79f565aa2880bfe0eb079e99e229fe8f
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Tue Oct 10 22:06:38 2017 +0100

    debugserver: set object name if available, otherwise - typename

 src/debugserver/gstdebugserverlog.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/debugserver/gstdebugserverlog.c b/src/debugserver/gstdebugserverlog.c
index 12e2140..289e670 100644
--- a/src/debugserver/gstdebugserverlog.c
+++ b/src/debugserver/gstdebugserverlog.c
@@ -125,7 +125,13 @@ void gst_debugserver_log_send_log (GstDebugserverLog * log, GstDebugserverTcp *
   log_info.file = (gchar*) file;
   log_info.function = (gchar*) function;
   log_info.line = line;
-  log_info.object = "todo";
+
+  if (GST_IS_OBJECT (object)) {
+    log_info.object = GST_OBJECT_NAME (object);
+  } else {
+    log_info.object = (gchar*) G_OBJECT_TYPE_NAME (object);
+  }
+
   log_info.message = (gchar*) gst_debug_message_get (message);
 
   gst_data.info_type_case = GST_DEBUGGER__GSTREAMER_DATA__INFO_TYPE_LOG_INFO;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]