New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FileSystem] deprecate use of READ_CHUNKED flag #25158
base: master
Are you sure you want to change the base?
Conversation
860ba73
to
240fca5
Compare
xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamNavigator.cpp
Outdated
Show resolved
Hide resolved
@thexai : 2 remarks, perhaps you're already aware but I like to mention them to provide some inside about some of the design decisions years ago:
|
240fca5
to
b7e5c89
Compare
Currently seems other flag is used for this: xbmc/xbmc/filesystem/FileCache.cpp Lines 162 to 167 in 436befa
|
Ah yes, my mistake, you're right. I confused it with the READ_MULTI_STREAM-flag. |
2d501e3
to
ed2048d
Compare
ed2048d
to
017897e
Compare
Description
[FileSystem] deprecate use of READ_CHUNKED flag
This is a follow up of #25128 or better alternative as fixes the same in more elaborated way. Also fixes other potential issues or "unwanted behavior changes" due the main refactor in StreamBuffer logic.
Motivation and context
As commented in the other PR,
READ_AUDIO_VIDEO
flag fits better intoCFile::ShouldUseStreamBuffer
method because same as FileCache, StreamBuffer only should be used in audio/video files.Once replaced here results that
READ_CHUNKED
flag is a dead code because only is set but never read/used. Then can be deprecated.The others changes are only small adjustments to maintain the same functionality and some potential fix.
How has this been tested?
Runtime Windows x64 and Shield
Tested that use of FileCache and StreamBuffer is maintained same as before for most habitual scenarios: tested MKV's local/network SMB, NFS. Tested Blu-Ray BDMV folders and ISOs SMB and NFS. Adequate chunk size is used same as before: 128K on network and 6144 bytes locally. Tested DVD, DVD ISOs.
Fix for external SRT is preserved without needing to use the
READ_NO_BUFFER
flag since when opening subtitles it does not have theREAD_AUDIO_VIDEO
flag and the file size >200 MB condition is not met either.What is the effect on users?
Nothing directly but prevents other potentially cases of StreamBuffer used on file contents that are not suitable (non audio/video files).
Types of change
Checklist: