mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
message: protect against null message sources
Message sources can be null, check if it is before trying to access its name.
This commit is contained in:
parent
4c1397d572
commit
3ab02d8fdc
1 changed files with 1 additions and 2 deletions
|
@ -192,8 +192,7 @@ gst_message_finalize (GstMessage * message)
|
|||
g_return_if_fail (message != NULL);
|
||||
|
||||
GST_CAT_LOG (GST_CAT_MESSAGE, "finalize message %p, %s from %s", message,
|
||||
GST_MESSAGE_TYPE_NAME (message),
|
||||
GST_OBJECT_NAME (GST_MESSAGE_SRC (message)));
|
||||
GST_MESSAGE_TYPE_NAME (message), GST_MESSAGE_SRC_NAME (message));
|
||||
|
||||
if (GST_MESSAGE_SRC (message)) {
|
||||
gst_object_unref (GST_MESSAGE_SRC (message));
|
||||
|
|
Loading…
Reference in a new issue