mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-26 11:12:53 +00:00
make channel access opt-in rather than opt out
This commit is contained in:
parent
f552174069
commit
d8d5dd4873
72 changed files with 399 additions and 241 deletions
|
|
@ -556,31 +556,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
|||
return (stream);
|
||||
}
|
||||
}
|
||||
|
||||
public void SaveAs(string filename)
|
||||
{
|
||||
byte[] buffer = new byte[16 * 1024];
|
||||
long old_post = stream.Position;
|
||||
|
||||
try
|
||||
{
|
||||
File.Delete(filename);
|
||||
using (FileStream fs = File.Create(filename))
|
||||
{
|
||||
stream.Position = 0;
|
||||
int n;
|
||||
|
||||
while ((n = stream.Read(buffer, 0, 16 * 1024)) != 0)
|
||||
{
|
||||
fs.Write(buffer, 0, n);
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
stream.Position = old_post;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Helpers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue