Converting files to URIs is not as simple as just prepending "file://" to
them, notably we need to escape characters that are special in URIs such as
"#" and "%", so use FileNameToURL() which already does do it correctly.
Closes #13663.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71927
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/timer.h" // wxTimer
#endif
#include "wx/timer.h" // wxTimer
#endif
+#include "wx/filesys.h" // FileNameToURL()
#include "wx/thread.h" // wxMutex/wxMutexLocker
#ifdef __WXGTK__
#include "wx/thread.h" // wxMutex/wxMutexLocker
#ifdef __WXGTK__
//-----------------------------------------------------------------------------
bool wxGStreamerMediaBackend::Load(const wxString& fileName)
{
//-----------------------------------------------------------------------------
bool wxGStreamerMediaBackend::Load(const wxString& fileName)
{
- return DoLoad(wxString( wxT("file://") ) + fileName);
+ return DoLoad(wxFileSystem::FileNameToURL(fileName));
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------