use message type names

Original commit message from CVS:
use message type names
parent d2c83dc2
common @ 5cd42179
Subproject commit 7caeee4b949b4388927fec7fcf25f767429bde30
Subproject commit 5cd4217979c25fc1fcbb82282e4ad6cbdea9e6cf
......@@ -1523,8 +1523,8 @@ gst_bin_send_event (GstElement * element, GstEvent * event)
static GstBusSyncReply
bin_bus_handler (GstBus * bus, GstMessage * message, GstBin * bin)
{
GST_DEBUG_OBJECT (bin, "[msg %p] handling child message of type %d",
message, GST_MESSAGE_TYPE (message));
GST_DEBUG_OBJECT (bin, "[msg %p] handling child message of type %s",
message, gst_message_type_get_name (GST_MESSAGE_TYPE (message)));
switch (GST_MESSAGE_TYPE (message)) {
case GST_MESSAGE_EOS:{
......
......@@ -455,11 +455,18 @@ gst_bus_pop (GstBus * bus)
g_return_val_if_fail (GST_IS_BUS (bus), NULL);
GST_DEBUG_OBJECT (bus, "%d messages on the bus",
g_queue_get_length (bus->queue));
g_mutex_lock (bus->queue_lock);
message = g_queue_pop_head (bus->queue);
g_mutex_unlock (bus->queue_lock);
GST_DEBUG_OBJECT (bus, "pop on bus, got message %p", message);
if (message)
GST_DEBUG_OBJECT (bus, "pop on bus, got message %p, %s", message,
gst_message_type_get_name (GST_MESSAGE_TYPE (message)));
else
GST_DEBUG_OBJECT (bus, "pop on bus, no message");
return message;
}
......
......@@ -226,7 +226,8 @@ gst_message_new (GstMessageType type, GstObject * src)
message = (GstMessage *) gst_mini_object_new (GST_TYPE_MESSAGE);
GST_CAT_INFO (GST_CAT_MESSAGE, "creating new message %p %d", message, type);
GST_CAT_INFO (GST_CAT_MESSAGE, "creating new message %p %s", message,
gst_message_type_get_name (type));
message->type = type;
if (src) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment