Commit 7aba64e1 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

srt: post error when failing to start

... as appropriate for a subsequent state change failure
parent 6d9398e8
Pipeline #32333 passed with stages
in 43 minutes and 3 seconds
......@@ -155,7 +155,9 @@ gst_srt_sink_start (GstBaseSink * bsink)
}
if (!ret) {
GST_WARNING_OBJECT (self, "Failed to open SRT: %s", error->message);
/* ensure error is posted since state change will fail */
GST_ELEMENT_ERROR (self, RESOURCE, OPEN_WRITE, (NULL),
("Failed to open SRT: %s", error->message));
g_clear_error (&error);
}
......
......@@ -114,7 +114,9 @@ gst_srt_src_start (GstBaseSrc * bsrc)
}
if (!ret) {
GST_WARNING_OBJECT (self, "Failed to open SRT: %s", error->message);
/* ensure error is posted since state change will fail */
GST_ELEMENT_ERROR (self, RESOURCE, OPEN_READ, (NULL),
("Failed to open SRT: %s", error->message));
g_clear_error (&error);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment