diff options
author | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2017-10-27 14:02:14 +0200 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2017-12-14 13:25:02 +0000 |
commit | 9caee039533168fbb546b563859770414e54fc94 (patch) | |
tree | c3e2dd5f02618de97df2382667e0db98de12f8eb /src/plugins/gstreamer/mediacapture/qgstreamercameracontrol.h | |
parent | 8ec92863f13061c3dd2d56376eddfe258915589f (diff) | |
download | qtmultimedia-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/mediacapture/qgstreamercameracontrol.h')
0 files changed, 0 insertions, 0 deletions