Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
58f63289
Commit
58f63289
authored
May 11, 2010
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: ensure uri-encoded paths are passed to vlc core
parent
e0ff545e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
modules/gui/skins2/parser/xmlparser.cpp
modules/gui/skins2/parser/xmlparser.cpp
+5
-1
modules/gui/skins2/src/file_bitmap.cpp
modules/gui/skins2/src/file_bitmap.cpp
+7
-2
No files found.
modules/gui/skins2/parser/xmlparser.cpp
View file @
58f63289
...
...
@@ -23,6 +23,7 @@
#include "xmlparser.hpp"
#include "../src/os_factory.hpp"
#include <vlc_url.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
...
...
@@ -54,7 +55,10 @@ XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName,
// }
LoadCatalog
();
m_pStream
=
stream_UrlNew
(
pIntf
,
rFileName
.
c_str
()
);
char
*
psz_uri
=
make_URI
(
rFileName
.
c_str
()
);
m_pStream
=
stream_UrlNew
(
pIntf
,
psz_uri
);
free
(
psz_uri
);
if
(
!
m_pStream
)
{
msg_Err
(
getIntf
(),
"failed to open %s for reading"
,
...
...
modules/gui/skins2/src/file_bitmap.cpp
View file @
58f63289
...
...
@@ -28,6 +28,7 @@
#include <vlc_common.h>
#include <vlc_image.h>
#include <vlc_url.h>
#include "file_bitmap.hpp"
FileBitmap
::
FileBitmap
(
intf_thread_t
*
pIntf
,
image_handler_t
*
pImageHandler
,
...
...
@@ -41,8 +42,12 @@ FileBitmap::FileBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler,
fmt_out
.
i_chroma
=
VLC_CODEC_RGBA
;
pPic
=
image_ReadUrl
(
pImageHandler
,
fileName
.
c_str
(),
&
fmt_in
,
&
fmt_out
);
if
(
!
pPic
)
return
;
char
*
psz_uri
=
make_URI
(
fileName
.
c_str
()
);
pPic
=
image_ReadUrl
(
pImageHandler
,
psz_uri
,
&
fmt_in
,
&
fmt_out
);
free
(
psz_uri
);
if
(
!
pPic
)
return
;
m_width
=
fmt_out
.
i_width
;
m_height
=
fmt_out
.
i_height
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment