LibVLC.Log - Events are raised on all LibVLC instances
Summary
When having multiple instances of LibVLC
, any Log event is raised on all the instances
Minimal project and steps to reproduce
Based on the NetCoreSample
static void Main(string[] args)
{
Core.Initialize();
var libVLC1 = new LibVLC();
libVLC1.Log += (sender, eventArgs) => Console.WriteLine($"libVLC1 : {eventArgs.Message}");
var libVLC2 = new LibVLC();
libVLC2.Log += (sender, eventArgs) => Console.WriteLine($"libVLC2 : {eventArgs.Message}");
var media = new Media(libVLC2, "https://fake_stream", FromType.FromLocation);
var mp = new MediaPlayer(media);
mp.Play();
Console.ReadKey();
}
<PackageReference Include="VideoLAN.LibVLC.Windows" Version="3.0.8" />
<PackageReference Include="LibVLCSharp" Version="3.2.1" />
What is the current bug behavior?
Log events from the libVLC2 objects are raised on libVLC1 and libVLC2
libVLC1 : cannot resolve fake_stream port 443: No such host is known.
libVLC2 : cannot resolve fake_stream port 443: No such host is known.
What is the expected correct behavior?
Log events from the libVLC2 objects are raised only on libVLC2
Environment
- OS: Windows 10 1903
- LibVLC 3.0.8 x64
- LibVLCSharp 3.2.1