summaryrefslogtreecommitdiff
path: root/src/plugins/gstreamer/camerabin/camerabinresourcepolicy.cpp
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2017-10-27 14:02:14 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2017-12-14 13:25:02 +0000
commit9caee039533168fbb546b563859770414e54fc94 (patch)
treec3e2dd5f02618de97df2382667e0db98de12f8eb /src/plugins/gstreamer/camerabin/camerabinresourcepolicy.cpp
parent8ec92863f13061c3dd2d56376eddfe258915589f (diff)
downloadqtmultimedia-9caee039533168fbb546b563859770414e54fc94.tar.gz
GStreamer: Prevent calling CameraBinSession::setStateHelper twice
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: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/gstreamer/camerabin/camerabinresourcepolicy.cpp')
0 files changed, 0 insertions, 0 deletions