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
581da20c
Commit
581da20c
authored
Feb 20, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: use make_path
parent
532e2f3e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
19 deletions
+16
-19
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/components/info_panels.cpp
+7
-8
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+9
-11
No files found.
modules/gui/qt4/components/info_panels.cpp
View file @
581da20c
...
...
@@ -234,14 +234,13 @@ void MetaPanel::update( input_item_t *p_item )
QString
file
;
char
*
psz_art
=
input_item_GetArtURL
(
p_item
);
if
(
psz_art
&&
!
strncmp
(
psz_art
,
"file://"
,
7
)
&&
decode_URI
(
psz_art
+
7
)
)
#ifdef WIN32
file
=
qfu
(
psz_art
+
8
);
// Remove extra / on Win32 URI.
#else
file
=
qfu
(
psz_art
+
7
);
#endif
if
(
psz_art
)
{
char
*
psz
=
make_path
(
psz_art
);
free
(
psz_art
);
file
=
qfu
(
psz
);
free
(
psz
);
}
art_cover
->
showArtUpdate
(
file
);
...
...
modules/gui/qt4/input_manager.cpp
View file @
581da20c
...
...
@@ -609,20 +609,18 @@ const QString InputManager::decodeArtURL( input_item_t *p_item )
assert
(
p_item
);
char
*
psz_art
=
input_item_GetArtURL
(
p_item
);
QString
url
;
if
(
psz_art
&&
!
strncmp
(
psz_art
,
"file://"
,
7
)
&&
decode_URI
(
psz_art
+
7
)
)
#ifdef WIN32
url
=
qfu
(
psz_art
+
8
);
// Remove extra / starting on Win32.
#else
url
=
qfu
(
psz_art
+
7
);
#endif
if
(
psz_art
)
{
char
*
psz
=
make_path
(
psz_art
);
free
(
psz_art
);
psz_art
=
psz
;
}
url
=
url
.
replace
(
"file://"
,
""
);
#if 0
/* Taglib seems to define a attachment://, It won't work yet */
url = url.replace( "attachment://", "" );
return
url
;
#endif
return
qfu
(
psz_art
?
psz_art
:
""
);
}
void
InputManager
::
UpdateArt
()
...
...
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