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
c0f36651
Commit
c0f36651
authored
Jan 24, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: save the playlist also in html.
parent
4f697cb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
modules/gui/skins2/commands/cmd_playlist.cpp
modules/gui/skins2/commands/cmd_playlist.cpp
+9
-4
modules/gui/skins2/src/dialogs.cpp
modules/gui/skins2/src/dialogs.cpp
+3
-1
No files found.
modules/gui/skins2/commands/cmd_playlist.cpp
View file @
c0f36651
...
...
@@ -102,16 +102,21 @@ void CmdPlaylistSave::execute()
if
(
pPlaylist
!=
NULL
)
{
static
const
char
psz_xspf
[]
=
"export-xspf"
,
psz_m3u
[]
=
"export-m3u"
;
psz_m3u
[]
=
"export-m3u"
,
psz_html
[]
=
"export-html"
;
const
char
*
psz_module
;
if
(
m_file
.
find
(
".xsp"
,
0
)
!=
string
::
npos
)
psz_module
=
psz_xspf
;
else
if
(
m_file
.
find
(
"m3u"
,
0
)
!=
string
::
npos
)
psz_module
=
psz_m3u
;
else
if
(
m_file
.
find
(
"html"
,
0
)
!=
string
::
npos
)
psz_module
=
psz_html
;
else
{
psz_module
=
psz_m3u
;
if
(
m_file
.
find
(
".m3u"
,
0
)
==
string
::
npos
)
m_file
.
append
(
".m3u"
);
msg_Err
(
getIntf
(),
"Impossible to recognise the file type"
);
return
;
}
playlist_Export
(
pPlaylist
,
m_file
.
c_str
(),
pPlaylist
->
p_local_category
,
psz_module
);
}
}
modules/gui/skins2/src/dialogs.cpp
View file @
c0f36651
...
...
@@ -233,7 +233,9 @@ void Dialogs::showPlaylistLoad()
void
Dialogs
::
showPlaylistSave
()
{
showFileGeneric
(
_
(
"Save playlist"
),
_
(
"XSPF playlist|*.xspf|M3U file|*.m3u"
),
showFileGeneric
(
_
(
"Save playlist"
),
_
(
"XSPF playlist|*.xspf|"
"M3U file|*.m3u|"
"HTML playlist|*.html"
),
showPlaylistSaveCB
,
kSAVE
);
}
...
...
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