srt: post error when failing to start
... as appropriate for a subsequent state change failure
This commit is contained in:
parent
6d9398e87f
commit
7aba64e19d
@ -155,7 +155,9 @@ gst_srt_sink_start (GstBaseSink * bsink)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ret) {
|
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);
|
g_clear_error (&error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +114,9 @@ gst_srt_src_start (GstBaseSrc * bsrc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ret) {
|
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);
|
g_clear_error (&error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user