diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp b/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp index 6ac760562..3ff148e08 100644 --- a/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp +++ b/src/plugins/gstreamer/mediacapture/qgstreamerrecordercontrol.cpp @@ -44,6 +44,7 @@ #include "qgstreamervideoencode.h" #include "qgstreamermediacontainercontrol.h" #include <QtCore/QDebug> +#include <QtGui/qdesktopservices.h> QGstreamerRecorderControl::QGstreamerRecorderControl(QGstreamerCaptureSession *session) :QMediaRecorderControl(session), @@ -321,6 +322,11 @@ QDir QGstreamerRecorderControl::defaultDir() const dirCandidates << QLatin1String("/home/user/MyDocs"); #endif + if (m_session->captureMode() & QGstreamerCaptureSession::Video) + dirCandidates << QDesktopServices::storageLocation(QDesktopServices::MoviesLocation); + else + dirCandidates << QDesktopServices::storageLocation(QDesktopServices::MusicLocation); + dirCandidates << QDir::home().filePath("Documents"); dirCandidates << QDir::home().filePath("My Documents"); dirCandidates << QDir::homePath(); |