Android: Don't delete the media recorder object twice.
authorChristian Strømme <christian.stromme@theqtcompany.com>
Mon, 27 Apr 2015 14:24:18 +0000 (16:24 +0200)
committerChristian Stromme <christian.stromme@theqtcompany.com>
Thu, 30 Apr 2015 22:48:01 +0000 (22:48 +0000)
commit0559f645bbe928e9a54666356409fce444e80c57
tree5281b51c865255ec52cbf9b81c7988ddb9e940d8
parentd910b6d63ff0ca74b5af004a83c437fa4db190c0
Android: Don't delete the media recorder object twice.

In QAndroidCaptureSession::stop() we call restartViewFinder() which
eventually calls QAndroidCaptureSession::stop() again, but this time
the media recorder object is already released.

Task-number: QTBUG-45637
Change-Id: I943c423398a99d98ccda1063fc16e47cba470deb
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
src/plugins/android/src/mediacapture/qandroidcapturesession.cpp
src/plugins/android/src/mediacapture/qandroidcapturesession.h