mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
tests: fix warning in rtpool-test
The stream status message object may be of a non-GObject type, e.g. G_TYPE_POINTER (see GstAudioSrc), so print that properly instead of assuming the value holds an object.
This commit is contained in:
parent
fbdf4dceda
commit
25271218de
1 changed files with 10 additions and 2 deletions
|
@ -74,8 +74,16 @@ sync_bus_handler (GstBus * bus, GstMessage * message, GstElement * bin)
|
|||
path = gst_object_get_path_string (GST_OBJECT (owner));
|
||||
g_message ("owner: %s", path);
|
||||
g_free (path);
|
||||
g_message ("object: type %s, value %p", G_VALUE_TYPE_NAME (val),
|
||||
g_value_get_object (val));
|
||||
|
||||
if (G_VALUE_HOLDS_OBJECT (val)) {
|
||||
g_message ("object: type %s, value %p", G_VALUE_TYPE_NAME (val),
|
||||
g_value_get_object (val));
|
||||
} else if (G_VALUE_HOLDS_POINTER (val)) {
|
||||
g_message ("object: type %s, value %p", G_VALUE_TYPE_NAME (val),
|
||||
g_value_get_pointer (val));
|
||||
} else {
|
||||
g_message ("object: type %s", G_VALUE_TYPE_NAME (val));
|
||||
}
|
||||
|
||||
/* see if we know how to deal with this object */
|
||||
if (G_VALUE_TYPE (val) == GST_TYPE_TASK) {
|
||||
|
|
Loading…
Reference in a new issue