bin: properly display the type of the removed message

Makes debugging easier.

https://bugzilla.gnome.org/show_bug.cgi?id=768579
This commit is contained in:
Guillaume Desmottes 2016-07-08 16:29:38 +02:00 committed by Tim-Philipp Müller
parent 7a0f4422fa
commit 757a8b04c0

View file

@ -983,7 +983,8 @@ bin_remove_messages (GstBin * bin, GstObject * src, GstMessageType types)
if (message_check (message, &find) == 0) { if (message_check (message, &find) == 0) {
GST_DEBUG_OBJECT (GST_MESSAGE_SRC (message), GST_DEBUG_OBJECT (GST_MESSAGE_SRC (message),
"deleting message %p of types 0x%08x", message, types); "deleting message %p of type %s (types 0x%08x)", message,
GST_MESSAGE_TYPE_NAME (message), types);
bin->messages = g_list_delete_link (bin->messages, walk); bin->messages = g_list_delete_link (bin->messages, walk);
gst_message_unref (message); gst_message_unref (message);
} else { } else {