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
11d2650a
Commit
11d2650a
authored
Aug 06, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify and remove a warning
parent
808d1d38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/playlist/loadsave.c
src/playlist/loadsave.c
+6
-5
No files found.
src/playlist/loadsave.c
View file @
11d2650a
...
@@ -136,7 +136,7 @@ error:
...
@@ -136,7 +136,7 @@ error:
int
playlist_MLDump
(
playlist_t
*
p_playlist
)
int
playlist_MLDump
(
playlist_t
*
p_playlist
)
{
{
char
*
psz_
uri
,
*
psz_
homedir
=
p_playlist
->
p_libvlc
->
psz_homedir
;
char
*
psz_homedir
=
p_playlist
->
p_libvlc
->
psz_homedir
;
if
(
!
config_GetInt
(
p_playlist
,
"media-library"
)
)
return
VLC_SUCCESS
;
if
(
!
config_GetInt
(
p_playlist
,
"media-library"
)
)
return
VLC_SUCCESS
;
if
(
!
psz_homedir
)
if
(
!
psz_homedir
)
{
{
...
@@ -144,19 +144,20 @@ int playlist_MLDump( playlist_t *p_playlist )
...
@@ -144,19 +144,20 @@ int playlist_MLDump( playlist_t *p_playlist )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
char
psz_dirname
[
strlen
(
psz_homedir
)
+
sizeof
(
DIR_SEP
CONFIG_DIR
)
];
char
psz_dirname
[
strlen
(
psz_homedir
)
+
sizeof
(
DIR_SEP
CONFIG_DIR
DIR_SEP
"ml.xsl"
)];
sprintf
(
psz_dirname
,
"%s"
DIR_SEP
CONFIG_DIR
,
psz_homedir
);
sprintf
(
psz_dirname
,
"%s"
DIR_SEP
CONFIG_DIR
,
psz_homedir
);
if
(
config_CreateDir
(
(
vlc_object_t
*
)
p_playlist
,
psz_dirname
)
)
if
(
config_CreateDir
(
(
vlc_object_t
*
)
p_playlist
,
psz_dirname
)
)
{
{
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
asprintf
(
&
psz_uri
,
"%s"
DIR_SEP
"%s"
,
psz_dirname
,
"ml.xsp"
);
strcat
(
psz_dirname
,
DIR_SEP
"ml.xsp"
);
stats_TimerStart
(
p_playlist
,
"ML Dump"
,
STATS_TIMER_ML_DUMP
);
stats_TimerStart
(
p_playlist
,
"ML Dump"
,
STATS_TIMER_ML_DUMP
);
playlist_Export
(
p_playlist
,
psz_
uri
,
p_playlist
->
p_ml_category
,
playlist_Export
(
p_playlist
,
psz_
dirname
,
p_playlist
->
p_ml_category
,
"export-xspf"
);
"export-xspf"
);
stats_TimerStop
(
p_playlist
,
STATS_TIMER_ML_DUMP
);
stats_TimerStop
(
p_playlist
,
STATS_TIMER_ML_DUMP
);
free
(
psz_uri
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
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