[vlc-commits] [Git][videolan/vlc][master] 2 commits: access: cdrom: report cue track sector with the same format as track type
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Sep 10 14:28:38 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
3dba3644 by Steve Lhomme at 2026-09-10T14:09:29+00:00
access: cdrom: report cue track sector with the same format as track type
That's also the number that is written in the file.
- - - - -
80bf6d0a by Steve Lhomme at 2026-09-10T14:09:29+00:00
access: vcd: report the title start/end from the first sector
- - - - -
2 changed files:
- modules/access/vcd/cdrom.c
- modules/access/vcd/vcd.c
Changes:
=====================================
modules/access/vcd/cdrom.c
=====================================
@@ -981,8 +981,8 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
p_toc->p_sectors = buf;
p_toc->p_sectors[p_toc->i_tracks].i_lba = MSF_TO_LBA(i_min, i_sec, i_frame);
p_toc->p_sectors[p_toc->i_tracks].i_control = track_subcodes;
- msg_Dbg( p_this, "vcd track %i begins at sector:%i",
- p_toc->i_tracks, p_toc->p_sectors[p_toc->i_tracks].i_lba );
+ msg_Dbg( p_this, "vcd track %02u(%i) begins at sector:%i",
+ track_num, p_toc->i_tracks, p_toc->p_sectors[p_toc->i_tracks].i_lba );
p_toc->i_tracks++;
break;
}
=====================================
modules/access/vcd/vcd.c
=====================================
@@ -171,8 +171,8 @@ static int Open( vlc_object_t *p_this )
for( int i = 0; i < USABLE_TITLES(p_sys->p_toc->i_tracks); i++ )
{
- msg_Dbg( p_access, "title[%d] start=%d", i, p_sys->p_toc->p_sectors[1+i].i_lba );
- msg_Dbg( p_access, "title[%d] end=%d", i, p_sys->p_toc->p_sectors[i+2].i_lba );
+ msg_Dbg( p_access, "title[%d] start=%d", i, p_sys->p_toc->p_sectors[i].i_lba );
+ msg_Dbg( p_access, "title[%d] end=%d", i, p_sys->p_toc->p_sectors[i+1].i_lba );
}
/* Map entry points into chapters */
@@ -491,4 +491,3 @@ static int EntryPoints( stream_t *p_access )
return VLC_SUCCESS;
}
-
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/e6f340c932082b99ed924c30d06499e8661d6219...80bf6d0afe0179a59894ee795853464754f5a2b8
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/e6f340c932082b99ed924c30d06499e8661d6219...80bf6d0afe0179a59894ee795853464754f5a2b8
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