bus: use GST_MESSAGE_SOURCE_NAME() which also takes care of src=NULL.
authorStefan Sauer <ensonic@users.sf.net>
Thu, 1 Dec 2011 15:25:07 +0000 (16:25 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Thu, 1 Dec 2011 15:25:07 +0000 (16:25 +0100)
gst/gstbus.c

index 0ef5b98..42c66de 100644 (file)
@@ -496,7 +496,7 @@ gst_bus_timed_pop_filtered (GstBus * bus, GstClockTime timeout,
     while ((message = g_queue_pop_head (bus->queue))) {
       GST_DEBUG_OBJECT (bus, "got message %p, %s from %s, type mask is %u",
           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) {
         /* exit the loop, we have a message */
         goto beach;