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
d704062a
Commit
d704062a
authored
Jun 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not inherit xspf-open demux from media library
parent
993d4fcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/playlist/loadsave.c
src/playlist/loadsave.c
+4
-3
No files found.
src/playlist/loadsave.c
View file @
d704062a
...
@@ -148,18 +148,19 @@ int playlist_MLLoad( playlist_t *p_playlist )
...
@@ -148,18 +148,19 @@ int playlist_MLLoad( playlist_t *p_playlist )
if
(
psz_datadir
==
NULL
)
if
(
psz_datadir
==
NULL
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
if
(
asprintf
(
&
psz_uri
,
"%s/ml.xspf"
,
psz_datadir
)
==
-
1
)
/* Force XSPF demux (psz_datadir was a path, now it is a file URI) */
if
(
asprintf
(
&
psz_uri
,
"file/xspf-open%s/ml.xspf"
,
psz_datadir
+
4
)
==
-
1
)
psz_uri
=
NULL
;
psz_uri
=
NULL
;
free
(
psz_datadir
);
free
(
psz_datadir
);
psz_datadir
=
NULL
;
psz_datadir
=
NULL
;
if
(
psz_uri
==
NULL
)
if
(
psz_uri
==
NULL
)
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
const
char
*
const
options
[
]
=
{
"meta-file"
,
"demux=xspf-open"
};
const
char
*
const
options
[
1
]
=
{
"meta-file"
,
};
/* that option has to be cleaned in input_item_subitem_added() */
/* that option has to be cleaned in input_item_subitem_added() */
/* vlc_gc_decref() in the same function */
/* vlc_gc_decref() in the same function */
p_input
=
input_item_NewExt
(
p_playlist
,
psz_uri
,
_
(
"Media Library"
),
p_input
=
input_item_NewExt
(
p_playlist
,
psz_uri
,
_
(
"Media Library"
),
2
,
options
,
VLC_INPUT_OPTION_TRUSTED
,
-
1
);
1
,
options
,
VLC_INPUT_OPTION_TRUSTED
,
-
1
);
free
(
psz_uri
);
free
(
psz_uri
);
if
(
p_input
==
NULL
)
if
(
p_input
==
NULL
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
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