[gst-debugger] gst-debugger: use gvaluebase for deserializing values in "details" module
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gst-debugger] gst-debugger: use gvaluebase for deserializing values in "details" module
- Date: Tue, 6 Oct 2015 16:38:32 +0000 (UTC)
commit c2cb20bc981743839ff0f2d296ef3200d5f548f6
Author: Marcin Kolny <marcin kolny gmail com>
Date: Tue Oct 6 18:37:45 2015 +0200
gst-debugger: use gvaluebase for deserializing values in "details" module
src/gst-debugger/modules/base_main_module.cpp | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/gst-debugger/modules/base_main_module.cpp b/src/gst-debugger/modules/base_main_module.cpp
index 8578418..4a74a64 100644
--- a/src/gst-debugger/modules/base_main_module.cpp
+++ b/src/gst-debugger/modules/base_main_module.cpp
@@ -72,14 +72,9 @@ void BaseMainModule::append_details_from_structure(Gst::Structure& structure)
*tmp_val = G_VALUE_INIT;
g_value_init(tmp_val, value.gobj()->g_type);
g_value_copy(value.gobj(), tmp_val);
- //auto gvalue = GValueBase::build_gvalue(tmp_val);
- //if (gvalue == nullptr)
- append_details_row(name, std::string("<unsupported type ") +
g_type_name(G_VALUE_TYPE(value.gobj())) + ">");
- //else
- //{
- // append_details_row(name, gvalue->to_string());
- // delete gvalue;
- //}
+ auto gvalue = GValueBase::build_gvalue(tmp_val);
+ append_details_row(name, gvalue->to_string());
+ delete gvalue;
return true;
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]