Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
3a0d6d96
Commit
3a0d6d96
authored
Apr 23, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/smbclient: wrap in MaybeBufferedInputStream
This enables the input buffer for remote files and caches file contents in MPD. Closes
https://github.com/MusicPlayerDaemon/MPD/issues/376
parent
f39d2d33
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
NEWS
NEWS
+2
-0
SmbclientInputPlugin.cxx
src/input/plugins/SmbclientInputPlugin.cxx
+4
-2
No files found.
NEWS
View file @
3a0d6d96
ver 0.21.8 (not yet released)
* input
- smbclient: download to buffer instead of throttling transfer
* output
- httpd: add missing mutex lock
- httpd: fix use-after-free bug
...
...
src/input/plugins/SmbclientInputPlugin.cxx
View file @
3a0d6d96
...
...
@@ -22,6 +22,7 @@
#include "lib/smbclient/Mutex.hxx"
#include "../InputStream.hxx"
#include "../InputPlugin.hxx"
#include "../MaybeBufferedInputStream.hxx"
#include "PluginUnavailable.hxx"
#include "system/Error.hxx"
#include "util/ASCII.hxx"
...
...
@@ -112,8 +113,9 @@ input_smbclient_open(const char *uri,
throw
MakeErrno
(
e
,
"smbc_fstat() failed"
);
}
return
std
::
make_unique
<
SmbclientInputStream
>
(
uri
,
mutex
,
ctx
,
fd
,
st
);
return
std
::
make_unique
<
MaybeBufferedInputStream
>
(
std
::
make_unique
<
SmbclientInputStream
>
(
uri
,
mutex
,
ctx
,
fd
,
st
));
}
size_t
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment