Skip to content
  • VaL Doroshchuk's avatar
    GStreamer: Prevent calling CameraBinSession::setStateHelper twice · 9caee039
    VaL Doroshchuk authored
    
    
    Since CameraBinSession::setStateHelper() is supposed to handle
    only pending states, added a fix to prevent calling it twice.
    Otherwise CameraBinSession::load() can be called few times
    which might lead an error from gstreamer.
    
    Possible call stack:
    CameraBinSession::setState()
    CameraBinSession::setStateHelper()
    CameraBinSession::load()
    CameraBinSession::setStatus()
    CameraBinSession::setStateHelper()
    CameraBinSession::load() << gst_element_set_state is called also twice
    
    Task-number: QTBUG-53204
    Change-Id: I00c66f91cd3b885c70848245da725ff68943fad2
    Reviewed-by: default avatarChristian Stromme <christian.stromme@qt.io>
    9caee039