mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
use message type names
Original commit message from CVS: use message type names
This commit is contained in:
parent
d2c83dc282
commit
8c2deca31b
4 changed files with 13 additions and 5 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
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) {
|
||||
|
|
Loading…
Reference in a new issue