mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
basesrc: retrieve the result from start_complete
gst_base_src_start_complete() can fail when the thread could not be started, for example. Make sure it causes the state change to fail by retrieving the result from _start_complete().
This commit is contained in:
parent
e89ac90fa1
commit
f688d4d8a7
1 changed files with 5 additions and 1 deletions
|
@ -3115,8 +3115,12 @@ gst_base_src_start (GstBaseSrc * basesrc)
|
|||
if (!result)
|
||||
goto could_not_start;
|
||||
|
||||
if (!gst_base_src_is_async (basesrc))
|
||||
if (!gst_base_src_is_async (basesrc)) {
|
||||
gst_base_src_start_complete (basesrc, GST_FLOW_OK);
|
||||
/* not really waiting here, we call this to get the result
|
||||
* from the start_complete call */
|
||||
result = gst_base_src_start_wait (basesrc) == GST_FLOW_OK;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
|
|
Loading…
Reference in a new issue