mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
srtsink: Add guard for null error when SRT open fails
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7628>
This commit is contained in:
parent
2caa6721f9
commit
f6e8b88128
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ gst_srt_sink_start (GstBaseSink * bsink)
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
/* ensure error is posted since state change will fail */
|
/* ensure error is posted since state change will fail */
|
||||||
GST_ELEMENT_ERROR (self, RESOURCE, OPEN_WRITE, (NULL),
|
GST_ELEMENT_ERROR (self, RESOURCE, OPEN_WRITE, (NULL),
|
||||||
("Failed to open SRT: %s", error->message));
|
("Failed to open SRT: %s", error ? error->message : "Unknown error"));
|
||||||
g_clear_error (&error);
|
g_clear_error (&error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue