-Subproject commit 7caeee4b949b4388927fec7fcf25f767429bde30
+Subproject commit 5cd4217979c25fc1fcbb82282e4ad6cbdea9e6cf
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:{
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;
}
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) {