diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2013-12-05 15:55:06 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-11 10:31:25 +0100 |
commit | 653041db1dbceb8e404949d98b6a34e6d05cbe1f (patch) | |
tree | 225e6d0041b0f1dafb497cb91d1885cba08e9af6 /src/plugins/wmf/sourceresolver.cpp | |
parent | 51b7864bb8879ea181da33fbeb36080dbed623ea (diff) |
WMF: fix some crashes.
Task-number: QTBUG-30827
Change-Id: Iafc53f7095ad9c086b3982afb2af045c54497dc9
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'src/plugins/wmf/sourceresolver.cpp')
-rw-r--r-- | src/plugins/wmf/sourceresolver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/wmf/sourceresolver.cpp b/src/plugins/wmf/sourceresolver.cpp index 3f39671f9..9ac126bda 100644 --- a/src/plugins/wmf/sourceresolver.cpp +++ b/src/plugins/wmf/sourceresolver.cpp @@ -197,7 +197,7 @@ void SourceResolver::load(QMediaResourceList& resources, QIODevice* stream) #ifdef TEST_STREAMING //Testing stream function if (url.scheme() == QLatin1String("file")) { - stream = new QFile(url.path().mid(1), this); + stream = new QFile(url.path().mid(1)); if (stream->open(QIODevice::ReadOnly)) { m_stream = new MFStream(stream, true); hr = m_sourceResolver->BeginCreateObjectFromByteStream( @@ -217,7 +217,7 @@ void SourceResolver::load(QMediaResourceList& resources, QIODevice* stream) if (url.scheme() == QLatin1String("qrc")) { // If the canonical URL refers to a Qt resource, open with QFile and use // the stream playback capability to play. - stream = new QFile(QLatin1Char(':') + url.path(), this); + stream = new QFile(QLatin1Char(':') + url.path()); if (stream->open(QIODevice::ReadOnly)) { m_stream = new MFStream(stream, true); hr = m_sourceResolver->BeginCreateObjectFromByteStream( |