Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
dbc59e3a
Commit
dbc59e3a
authored
Jun 14, 2006
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Tree playlist XSPF export
Kids, don't try this at home...
parent
e955c93c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
146 additions
and
108 deletions
+146
-108
modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/dialogs/playlist.cpp
+8
-5
modules/misc/playlist/xspf.c
modules/misc/playlist/xspf.c
+136
-102
modules/misc/playlist/xspf.h
modules/misc/playlist/xspf.h
+2
-1
No files found.
modules/gui/wxwidgets/dialogs/playlist.cpp
View file @
dbc59e3a
...
@@ -932,7 +932,7 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
...
@@ -932,7 +932,7 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
char
*
psz_desc
;
char
*
psz_desc
;
char
*
psz_filter
;
char
*
psz_filter
;
char
*
psz_module
;
char
*
psz_module
;
}
formats
[]
=
{{
_
(
"M3U file"
),
"*.m3u"
,
"export-m3u"
},
}
formats
[]
=
{
//
{ _("M3U file"), "*.m3u", "export-m3u" },
{
_
(
"XSPF playlist"
),
"*.xspf"
,
"export-xspf"
}
{
_
(
"XSPF playlist"
),
"*.xspf"
,
"export-xspf"
}
};
};
...
@@ -959,10 +959,13 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
...
@@ -959,10 +959,13 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
{
{
if
(
dialog
.
GetPath
().
mb_str
()
)
if
(
dialog
.
GetPath
().
mb_str
()
)
{
{
abort
();
/* what root should we export? */
// playlist_Export( p_playlist, dialog.GetPath().mb_str(),
if
(
p_playlist
->
p_root_category
->
i_children
>
0
)
// /* ROOT */
{
// formats[dialog.GetFilterIndex()].psz_module );
playlist_Export
(
p_playlist
,
dialog
.
GetPath
().
mb_str
(),
p_playlist
->
p_root_category
->
pp_children
[
0
],
formats
[
dialog
.
GetFilterIndex
()].
psz_module
);
}
}
}
}
}
...
...
modules/misc/playlist/xspf.c
View file @
dbc59e3a
This diff is collapsed.
Click to expand it.
modules/misc/playlist/xspf.h
View file @
dbc59e3a
...
@@ -33,5 +33,6 @@ const char hexchars[16] = "0123456789ABCDEF";
...
@@ -33,5 +33,6 @@ const char hexchars[16] = "0123456789ABCDEF";
/* prototypes */
/* prototypes */
int
E_
(
xspf_export_playlist
)(
vlc_object_t
*
);
int
E_
(
xspf_export_playlist
)(
vlc_object_t
*
);
static
void
xspf_export_item
(
playlist_item_t
*
,
FILE
*
);
static
void
xspf_export_item
(
playlist_item_t
*
,
FILE
*
,
int
*
);
static
void
xspf_extension_item
(
playlist_item_t
*
,
FILE
*
,
int
*
);
static
char
*
assertUTF8URI
(
char
*
);
static
char
*
assertUTF8URI
(
char
*
);
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