Android: fix registering recorded videos with the Android media scanner
Change-Id: I6dfc4e13b8a0bccb1bcfead728f7e1ddb7b58bb4 Reviewed-by: Christian Stromme <christian.stromme@digia.com>
This commit is contained in:
@@ -278,7 +278,7 @@ void QAndroidCaptureSession::stop(bool error)
|
|||||||
// if the media is saved into the standard media location, register it
|
// if the media is saved into the standard media location, register it
|
||||||
// with the Android media scanner so it appears immediately in apps
|
// with the Android media scanner so it appears immediately in apps
|
||||||
// such as the gallery.
|
// such as the gallery.
|
||||||
QString mediaPath = m_actualOutputLocation.toLocalFile();
|
QString mediaPath = m_usedOutputLocation.toLocalFile();
|
||||||
QString standardLoc = m_cameraSession ? AndroidMultimediaUtils::getDefaultMediaDirectory(AndroidMultimediaUtils::DCIM)
|
QString standardLoc = m_cameraSession ? AndroidMultimediaUtils::getDefaultMediaDirectory(AndroidMultimediaUtils::DCIM)
|
||||||
: AndroidMultimediaUtils::getDefaultMediaDirectory(AndroidMultimediaUtils::Sounds);
|
: AndroidMultimediaUtils::getDefaultMediaDirectory(AndroidMultimediaUtils::Sounds);
|
||||||
if (mediaPath.startsWith(standardLoc))
|
if (mediaPath.startsWith(standardLoc))
|
||||||
|
|||||||
Reference in New Issue
Block a user