summaryrefslogtreecommitdiffstats
path: root/osdep/win32-console-wrapper.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-02 00:39:14 +0100
committerwm4 <wm4@nowhere>2014-01-02 00:39:14 +0100
commitb04b48fc10dabb1d1b26ff519f55dcafb320985e (patch)
treed8251f4f2c765c56e91b8b31903b54bfbc815ea4 /osdep/win32-console-wrapper.c
parentb467df073e48aafcd515e54766cbf5e535507e7c (diff)
downloadmpv-b04b48fc10dabb1d1b26ff519f55dcafb320985e.tar.bz2
mpv-b04b48fc10dabb1d1b26ff519f55dcafb320985e.tar.xz
stream: always respect sector_size, fixes cdda://
Streams like CDDA have special requirements in what quantities data can be read: you can only read a sector at once, not more and not less. The stream_peek() function didn't respect that and set less (used internal buffer size of 2048 bytes, instead of CD sector size of 2352 bytes), so no data was read and EOF was accidentally set, making playback with cdda:// fail. This is a regression since commit 9a723f, but that commit merely exposed the issue (the redundant seek would clear the EOF flag).
Diffstat (limited to 'osdep/win32-console-wrapper.c')
0 files changed, 0 insertions, 0 deletions