#include "qgstreamervideoencode.h"
#include "qgstreamermediacontainercontrol.h"
#include <QtCore/QDebug>
+#include <QtGui/qdesktopservices.h>
QGstreamerRecorderControl::QGstreamerRecorderControl(QGstreamerCaptureSession *session)
:QMediaRecorderControl(session),
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();