summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation/mediaplayer
diff options
context:
space:
mode:
authorVal Doroshchuk <valentyn.doroshchuk@qt.io>2018-05-09 13:50:16 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2018-08-02 09:21:16 +0000
commit1b58b96bdf32ab9a89cba0ae43170804c0571ede (patch)
treea5e1ad28d95f9c1198c0fec17dbf31ee093fc189 /src/plugins/avfoundation/mediaplayer
parent89e6018f6f45350924e3c5f7007f779b9ed4cdeb (diff)
DirectShow: Notify if camera has been unplugged
If being used camera has been disconnected, state and status will remain like it is still active. Also no events are sent. Previously to fix this the camera needed to be unloaded and loaded again manually. IMediaEvent provides an ability to catch device removal notification with EC_DEVICE_LOST event. Since ISampleGrabber is used to get buffers. Added a fix to check if no buffers received for some time afterwards check for EC_DEVICE_LOST event. In case if the device is lost, the camera should be unloaded. Change-Id: I3a5edf00ce8ee25d8b06800fdad833a722bdba0d Task-number: QTBUG-68035 Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'src/plugins/avfoundation/mediaplayer')
0 files changed, 0 insertions, 0 deletions