mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
udpsink: don't crash on NULL error
Check if there is an error before retrieving its message. See https://bugzilla.gnome.org/show_bug.cgi?id=682481
This commit is contained in:
parent
42001de9ad
commit
916e4c86fa
1 changed files with 2 additions and 1 deletions
|
@ -790,7 +790,8 @@ join_group_failed:
|
||||||
{
|
{
|
||||||
gst_multiudpsink_stop (GST_BASE_SINK (sink));
|
gst_multiudpsink_stop (GST_BASE_SINK (sink));
|
||||||
GST_ELEMENT_ERROR (sink, RESOURCE, SETTINGS, (NULL),
|
GST_ELEMENT_ERROR (sink, RESOURCE, SETTINGS, (NULL),
|
||||||
("Could not join multicast group: %s", err->message));
|
("Could not join multicast group: %s",
|
||||||
|
err ? err->message : "unknown reason"));
|
||||||
g_clear_error (&err);
|
g_clear_error (&err);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue