diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-08-22 17:23:25 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-08-22 17:27:27 +0200 |
commit | 916e4c86fac864d2230590d99ec5c54b382e6e7b (patch) | |
tree | debf885cce650b3ce3131c8d7aa9e37a2bee585e /gst | |
parent | 42001de9ad997393abd4cc89e882853a20e897b6 (diff) | |
download | gstreamer-plugins-good-916e4c86fac864d2230590d99ec5c54b382e6e7b.tar.gz |
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
Diffstat (limited to 'gst')
-rw-r--r-- | gst/udp/gstmultiudpsink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c index 8db4db9dd..195d2ca4f 100644 --- a/gst/udp/gstmultiudpsink.c +++ b/gst/udp/gstmultiudpsink.c @@ -790,7 +790,8 @@ join_group_failed: { gst_multiudpsink_stop (GST_BASE_SINK (sink)); 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); return FALSE; } |