We have multiple cameras and we use this thread to open and close related streams, sometimes when I close one stream and open another, the execution get stuck.
I realized that putting a sleep just before gst_element_set_state is called, makes vimbasrc run properly.
Below is the output of debug prints from Gstream configured at level 5:
DEBUG basesrc gstbasesrc.c:3143:gst_base_src_set_allocation:<vimbasrc0> activate pool
DEBUG basesrc gstbasesrc.c:513:gst_base_src_wait_playing_unlocked:<vimbasrc0> live source waiting for running state
We have multiple cameras and we use this thread to open and close related streams, sometimes when I close one stream and open another, the execution get stuck. I realized that putting a sleep just before gst_element_set_state is called, makes vimbasrc run properly.
Below is the output of debug prints from Gstream configured at level 5: