bus: use GST_MESSAGE_SOURCE_NAME() which also takes care of src=NULL.

This commit is contained in:
Stefan Sauer 2011-12-01 16:25:07 +01:00
parent e6d2da7cf8
commit e34d796e41

View file

@ -496,7 +496,7 @@ gst_bus_timed_pop_filtered (GstBus * bus, GstClockTime timeout,
while ((message = g_queue_pop_head (bus->queue))) { while ((message = g_queue_pop_head (bus->queue))) {
GST_DEBUG_OBJECT (bus, "got message %p, %s from %s, type mask is %u", GST_DEBUG_OBJECT (bus, "got message %p, %s from %s, type mask is %u",
message, GST_MESSAGE_TYPE_NAME (message), message, GST_MESSAGE_TYPE_NAME (message),
GST_OBJECT_NAME (GST_MESSAGE_SRC (message)), (guint) types); GST_MESSAGE_SRC_NAME (message), (guint) types);
if ((GST_MESSAGE_TYPE (message) & types) != 0) { if ((GST_MESSAGE_TYPE (message) & types) != 0) {
/* exit the loop, we have a message */ /* exit the loop, we have a message */
goto beach; goto beach;