[3.0] misc CDDA/cdrom backports
- Sep 13, 2021
-
-
Steve Lhomme authored
(cherry picked from commit 84dbe807) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
2b89c58d -
Steve Lhomme authored
(cherry picked from commit 5fbe7c39) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
91f5a2fe -
Steve Lhomme authored
The same variable may be set, but we should use the one from the tracks. Only genre and description may not be set per track. The other are written properly on each track. (cherry picked from commit e086dc3b) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
4ae0c66a -
GIO uses the format "cdda://dev/" for the whole disk, and "cdda://dev/Track%20N.wav" for specific tracks. When support for specific tracks was added to the VLC CDDA module, it broke support for whole disk URIs with a trailing slash. This also fixes an infinite loop listing tracks if trying to open track 0, which is invalid. This is because that same open function is used to open specific tracks when using the "whole disk" mode as well, so this location parser resetting the track to 0 loops again at discovering all tracks when tryign to open e.g. "cdda://sr0/Track%200 ". Fixes #24767. (cherry picked from commit e2e52384) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
771cfd35 -
Steve Lhomme authored
The names are similar to the ones found in Vorbis. http://age.hobba.nl/audio/mirroredpages/ogg-tagging.html (cherry picked from commit 3ed90beb) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
bfbc019a -
Steve Lhomme authored
The names are similar to the ones found in Vorbis. http://age.hobba.nl/audio/mirroredpages/ogg-tagging.html (cherry picked from commit 6f5f25e6) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
13131a92 -
Steve Lhomme authored
(cherry picked from commit 52eed4d9) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
86febc2a -
Steve Lhomme authored
(cherry picked from commit 54598f7e) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
2e4220f6 -
Steve Lhomme authored
Something some empty values are set in the file. (cherry picked from commit d2f65642) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
4865c2a6 -
Steve Lhomme authored
CDTEXT_MAX_TRACKS is 0x7F, so we can never get more, since the number of track is already read using 0x7f. The real check is the upper bits check in the next line (extension flag). (cherry picked from commit 78cea805) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
c88c1f5d -
Steve Lhomme authored
It will end up returning -1 but we can avoid going further for no reason. (cherry picked from commit 8b2d14a9) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
4125e12a -
Steve Lhomme authored
We know we want to read 4 bytes exactly, which always higher than MINIMUM_CDROM_READ_TOC_EX_SIZE (2). (cherry picked from commit 2101c252) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
bec77237 -
Steve Lhomme authored
In mixed-mode CDs, the tracks before the first and after the last are not usuable as audio that, so we don't let the underlying format bleed into the metadata info. (cherry picked from commit 47abb6ad) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
2684bfbd -
Steve Lhomme authored
As found in libcdio. (cherry picked from commit 93476b94) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
885b05b3 -
Steve Lhomme authored
(cherry picked from commit 810e150c) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
6f9857e1 -
Steve Lhomme authored
We look for: [ ]+TRACK dd AUDIO [ ]+TRACK dd [ ]+TRACK dd (anything) Set the LeadOut type to the same type as the last track. Fixes #26036 (cherry picked from commit 8df1e10a) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
9979e59f -
Steve Lhomme authored
(cherry picked from commit d18fd89b) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
87d1788b -
Steve Lhomme authored
sys->length and sys->position are in sectors/frames, so they are converted to time using the number of frames per second (CD_ROM_CDDA_FRAMES). (cherry picked from commit 039bc91f) (edited) edited: - vlc 3.0 doesn't have vlc_tick_t API's Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
aedc4935 -
Steve Lhomme authored
(cherry picked from commit 5ae7ca3e) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
46321f67 -
Steve Lhomme authored
The MSF format corresponds to a basic CD audio duration. CD_ROM_CDDA_FRAMES is 75 (audio frames/sectors per second) (cherry picked from commit 52c0abe9) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
1a8682c8 -
Steve Lhomme authored
(cherry picked from commit a0192334) (edited) edited: - add_integer has an extra parameter Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
30dfe9d7 -
Steve Lhomme authored
(cherry picked from commit 36fdfe2b) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
f8e369aa -
Steve Lhomme authored
(cherry picked from commit f0f7bf3e) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
85f26776 -
Steve Lhomme authored
See https://docs.microsoft.com/en-us/windows-hardware/drivers/storage/cd-rom-io-control-codes This is available since XP so could be backported. We can read LBA values directly instead of MSF values shifted by 2s. (cherry picked from commit e308e93d) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
761c2548 -
Steve Lhomme authored
If it's missing we can't compute the length of the last track. (cherry picked from commit 2bc92c82) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
bba6720f -
Steve Lhomme authored
No functional changes. (cherry picked from commit 211a0f1f) (edited) edited: - the OS/2 code was slightly different Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
b7ce46f0 -
Steve Lhomme authored
(cherry picked from commit 2d7ac259) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
8546e7f5 -
Steve Lhomme authored
Do the cast to integers onces (cherry picked from commit 8e127ccd) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
fd8561e0 -
Steve Lhomme authored
(cherry picked from commit 294346b1) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
b374e0c1 -
Steve Lhomme authored
i_size was accumulating the p_sectors[track+1].i_lba - p_sectors[track].i_lba difference for each track with a factor. It's equivalent to p_sectors[p_toc->i_tracks].i_lba - p_sectors[0].i_lba (cherry picked from commit 0901a5a3) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
1ff46c92 -
Steve Lhomme authored
The LBAPregap() function transforms the gap in seconds to frames/LBA. It avoids using magic number in the code. The CDDB hash assumes the first track starts at 2s (which is not always true) so we add the offset to each track. (cherry picked from commit 3e8b98b8) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
6bf6c230 -
(cherry picked from commit 5f24d66c) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
2f64c15a -
Signed-off-by:
Rémi Denis-Courmont <remi@remlab.net> (cherry picked from commit 8c28d713) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
0224d3a2 -
Fixes when album data was always overriding track info, especially on compilations. Album is only used as default. (cherry picked from commit 57643940) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
650b8178 -
(cherry picked from commit 21ab625d) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
5a7a5fc1 -
(cherry picked from commit 68c791d1) (edited) edited: - update NEWS in proper place Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
974888ce -
(cherry picked from commit 40efcd42) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
e6d5243f -
(cherry picked from commit 8734abe0) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
bf268f45 -
(cherry picked from commit 646524d1) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
96634d26 -
Signed-off-by:
Jean-Baptiste Kempf <jb@videolan.org> (cherry picked from commit ec0eb509) Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
c4181817
-