mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
bus: handle NULL message src in debug
This commit is contained in:
parent
03cdd32b33
commit
b7e4eeb0b0
1 changed files with 4 additions and 1 deletions
|
@ -481,9 +481,12 @@ gst_bus_timed_pop_filtered (GstBus * bus, GstClockTime timeout,
|
|||
while ((message = gst_atomic_queue_pop (bus->queue))) {
|
||||
if (bus->priv->poll)
|
||||
gst_poll_read_control (bus->priv->poll);
|
||||
|
||||
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 (message) ?
|
||||
GST_OBJECT_NAME (GST_MESSAGE_SRC (message)) : "NULL", (guint) types);
|
||||
|
||||
if ((GST_MESSAGE_TYPE (message) & types) != 0) {
|
||||
/* exit the loop, we have a message */
|
||||
goto beach;
|
||||
|
|
Loading…
Reference in a new issue