Commit 28c62af6 authored by Martin Finkel's avatar Martin Finkel Committed by Martin Finkel

media open cb: explicitly return 0 when expected by libvlc

# Conflicts:
#	src/LibVLCSharp/StreamMediaInput.cs
parent b24a2170
......@@ -67,6 +67,11 @@ namespace LibVLCSharp
{
try
{
if(_stream.CanSeek)
{
if (_stream.Position == _stream.Length)
return 0;
}
return _stream.Read(new Span<byte>(buf.ToPointer(), (int)Math.Min(len, int.MaxValue)));
}
catch (Exception)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment