Commit 014d3802 authored by Martin Finkel's avatar Martin Finkel

Fix wrong log file pointer return

Also fixes tests
parent 7d3fcdd4
......@@ -306,10 +306,10 @@ namespace LibVLCSharp.Shared
/// </remarks>
public void UnsetLog()
if (_logCallback == null) return;
if (_logCallback != null)
if (!CloseLogFile())
throw new VLCException("Could not close log file");
_logCallback = null;
......@@ -398,7 +398,7 @@ namespace LibVLCSharp.Shared
var result = MarshalUtils.Open(filename, out var filePtr);
if (!result)
throw new VLCException("Could not get FILE * for log_set_file");
return IntPtr.Zero;
return filePtr;
/// <summary>Returns a list of audio filters that are available.</summary>
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