diff --git a/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp b/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp index 49aa3fb8..db64ba66 100644 --- a/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp +++ b/src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp @@ -55,7 +55,7 @@ #include #include #include -#include +#include #if defined(Q_WS_MAEMO_6) || (GST_VERSION_MICRO > 20) #define USE_PLAYBIN2 @@ -1572,7 +1572,7 @@ void QGstreamerPlayerSession::handleElementAdded(GstBin *bin, GstElement *elemen session->m_haveQueueElement = true; if (session->property("mediaDownloadEnabled").toBool()) { - QDir cacheDir(QDesktopServices::storageLocation(QDesktopServices::CacheLocation)); + QDir cacheDir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation)); QString cacheLocation = cacheDir.absoluteFilePath("gstmedia__XXXXXX"); #ifdef DEBUG_PLAYBIN qDebug() << "set queue2 temp-location" << cacheLocation;