Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Declared non-seekable streams as non-seekable in callback input #648

Merged
merged 3 commits into from
May 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
- ADDED support for .net core 3.0 for Vlc.DotNet.Forms and Vlc.DotNet.Wpf
- DROPPED support for .net framework 2.0
- FIXED race conditions on Dispose() [#641](https://github.com/ZeBobo5/Vlc.DotNet/pull/641). Fixes [#639](https://github.com/ZeBobo5/Vlc.DotNet/issues/639) and [#640](https://github.com/ZeBobo5/Vlc.DotNet/issues/640)
- FIXED Media created from non-seekable .NET Streams were declared as seekable for libvlc [#648](https://github.com/ZeBobo5/Vlc.DotNet/pull/648). See [#647](https://github.com/ZeBobo5/Vlc.DotNet/issues/647).
- CHANGED The buffer size for media created from .NET Streams from 16kiB to 16MiB. It takes more memory, but allows to read more data at once. [#648](https://github.com/ZeBobo5/Vlc.DotNet/pull/648)

# 3.0.0
- BREAKING CHANGE : Created a new WPF control using ImageSource [#365](https://github.com/ZeBobo5/Vlc.DotNet/pull/365) see how to use in wiki!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public VlcMediaInstance CreateNewMediaFromStream(Stream stream)
myVlcInstance,
CallbackOpenMediaDelegate,
CallbackReadMediaDelegate,
CallbackSeekMediaDelegate,
stream.CanSeek ? CallbackSeekMediaDelegate : null,
CallbackCloseMediaDelegate,
opaque
));
Expand Down Expand Up @@ -148,7 +148,7 @@ private static IntPtr AddStream(Stream stream)
handle = new IntPtr(streamIndex);
DicStreams[handle] = new StreamData()
{
Buffer = new byte[0x4000],
Buffer = new byte[0x100_0000],
Handle = handle,
Stream = stream
};
Expand Down