[vlc-commits] [Git][videolan/vlc][master] playlist: itml: improve probing
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Mon May 4 13:16:00 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
870a7f6d by François Cartegnie at 2026-05-04T14:57:51+02:00
playlist: itml: improve probing
- - - - -
1 changed file:
- modules/demux/playlist/itml.c
Changes:
=====================================
modules/demux/playlist/itml.c
=====================================
@@ -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;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/870a7f6ddf1a6d82241c6cdfd60edb452f0e3d84
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/870a7f6ddf1a6d82241c6cdfd60edb452f0e3d84
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list