mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
camerabin: Processing should stop on READY
The videobin and imagebin from camerabin have their states locked and aren't put to READY when all the rest of camerabin is set to it. This might cause one of them to be still processing and post an EOS after camerabin isn't expecting it anymore, this causes an assertion as the processing counter would already be 0 and would be decremented.
This commit is contained in:
parent
7858d65b4a
commit
6a4be5a2ba
1 changed files with 6 additions and 0 deletions
|
@ -3834,6 +3834,12 @@ gst_camerabin_change_state (GstElement * element, GstStateChange transition)
|
|||
now that actual sink has been created. */
|
||||
camerabin_setup_view_elements (camera);
|
||||
break;
|
||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||
/* all processing should stop and those elements could have their state
|
||||
* locked, so set them explicitly here */
|
||||
gst_element_set_state (camera->imgbin, GST_STATE_READY);
|
||||
gst_element_set_state (camera->vidbin, GST_STATE_READY);
|
||||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||
gst_element_set_locked_state (camera->imgbin, FALSE);
|
||||
gst_element_set_locked_state (camera->vidbin, FALSE);
|
||||
|
|
Loading…
Reference in a new issue