Commit 52dde32c authored by Martin Finkel's avatar Martin Finkel

Review feedback: in case of immediate parsing failure, return...

Review feedback: in case of immediate parsing failure, return MediaParsedStatus.Failed directly instead of making additional native check
parent 6665659d
......@@ -439,7 +439,7 @@ namespace LibVLCSharp.Shared
var result = Native.LibVLCMediaParseWithOptions(NativeReference, options, timeout);
if (result == -1)
{
tcs.TrySetResult(ParsedStatus);
tcs.TrySetResult(MediaParsedStatus.Failed);
}
return await tcs.Task.ConfigureAwait(false);
......
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