Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
434
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Merge requests
!5152
Draft: playlist: itml: improve probing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: playlist: itml: improve probing
fcartegnie/vlc:mr280301
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Open
François Cartegnie
requested to merge
fcartegnie/vlc:mr280301
into
master
11 months ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
#3444
Previous fix would also match any plist file.
Waiting for all possible folder values.
Edited
11 months ago
by
François Cartegnie
0
0
Merge request reports
Compare
master
version 2
aa772db7
9 months ago
version 1
aa772db7
11 months ago
master (HEAD)
and
latest version
latest version
aa772db7
1 commit,
2 months ago
version 2
aa772db7
1 commit,
9 months ago
version 1
aa772db7
1 commit,
11 months ago
1 file
+
6
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/demux/playlist/itml.c
+
6
−
1
Options
@@ -51,11 +51,16 @@ int Import_iTML( vlc_object_t *p_this )
return
VLC_EGENERIC
;
const
uint8_t
*
p_peek
;
const
ssize_t
i_peek
=
vlc_stream_Peek
(
p_demux
->
s
,
&
p_peek
,
128
);
ssize_t
i_peek
=
vlc_stream_Peek
(
p_demux
->
s
,
&
p_peek
,
128
);
if
(
i_peek
<
32
||
!
strnstr
(
(
const
char
*
)
p_peek
,
"<!DOCTYPE plist "
,
i_peek
)
)
return
VLC_EGENERIC
;
i_peek
=
vlc_stream_Peek
(
p_demux
->
s
,
&
p_peek
,
1024
);
if
(
i_peek
<
23
||
!
strnstr
(
(
const
char
*
)
p_peek
,
"<key>Music Folder</key>"
,
i_peek
)
)
return
VLC_EGENERIC
;
msg_Dbg
(
p_demux
,
"using iTunes Media Library reader"
);
p_demux
->
pf_readdir
=
ReadDir
;
Loading