[vlc-commits] [Git][videolan/vlc][3.0.x] playlist: itml: improve probing
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Wed Jul 22 13:19:53 UTC 2026
Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC
Commits:
29996944 by François Cartegnie at 2026-07-22T14:24:44+02:00
playlist: itml: improve probing
(adapted picked from commit 870a7f6ddf1a6d82241c6cdfd60edb452f0e3d84)
- - - - -
1 changed file:
- modules/demux/playlist/itml.c
Changes:
=====================================
modules/demux/playlist/itml.c
=====================================
@@ -52,11 +52,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->p_source, &p_peek, 128 );
+ ssize_t i_peek = vlc_stream_Peek( p_demux->p_source, &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->p_source, &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/29996944eccc47165ac6ca06ad97dce557adde2a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/29996944eccc47165ac6ca06ad97dce557adde2a
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list