Run MediaPlayer.Dispose No response.
Summary
The window is unresponsive after executing MediaPlayer.Dispose()
Minimal project and steps to reproduce
- OS: Win10
- Version 21H2
- Device: i5-10400 CPU
- LibVLC version and architecture 4.0.0-alpha-20220901 X64
- LibVLCSharp version 4.0.0-alpha-20220901-6053
Possible fixes
2022-10-25 16:01:50.140 +08:00 [Debug] main Debug: ES_OUT_RESET_PCR called 2022-10-25 16:01:50.800 +08:00 [Debug] main Debug: Buffering 0% 2022-10-25 16:01:50.798 +08:00 [Debug] live555 Debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP() 2022-10-25 16:01:50.140 +08:00 [Debug] main Error: ES_OUT_SET_(GROUP_)PCR is called 1425 ms late (pts_delay increased to 300 ms) 2022-10-25 16:01:50.799 +08:00 [Debug] main Debug: ES_OUT_RESET_PCR called 2022-10-25 16:01:50.140 +08:00 [Debug] main Warning: picture is too late to be displayed (missing 1720 ms) 2022-10-25 16:01:50.803 +08:00 [Debug] main Debug: Buffering 93% 2022-10-25 16:01:50.804 +08:00 [Debug] main Error: buffer deadlock prevented 2022-10-25 16:01:50.804 +08:00 [Debug] main Debug: Decoder wait done in 0 ms 2022-10-25 16:01:50.804 +08:00 [Debug] main Debug: Stream buffering done (319 ms in 4 ms) 2022-10-25 16:01:50.818 +08:00 [Debug] main Debug: killing decoder fourcc
hevc'
2022-10-25 16:01:50.818 +08:00 [Debug] main Debug: removing "video decoder" module "avcodec"
2022-10-25 16:01:50.843 +08:00 [Debug] direct3d11 Debug: Win32 Vout EventThread terminating
2022-10-25 16:01:50.843 +08:00 [Debug] direct3d11 Debug: Win32VoutCloseWindow
2022-10-25 16:01:50.844 +08:00 [Debug] direct3d11 Debug: WinProc WM_DESTROY
2022-10-25 16:01:50.849 +08:00 [Debug] direct3d11 Debug: Direct3D11 resources destroyed
2022-10-25 16:01:50.850 +08:00 [Debug] direct3d11 Debug: Direct3D11 display adapter closed
2022-10-25 16:01:50.850 +08:00 [Debug] main Debug: saving a free vout
2022-10-25 16:01:50.851 +08:00 [Debug] main Debug: ES track unselected: 'video/auto/0' (fourcc: 'hevc')
2022-10-25 16:01:50.855 +08:00 [Debug] main Debug: removing "audio decoder" module "g711"
2022-10-25 16:01:50.855 +08:00 [Debug] main Debug: killing decoder fourcc mlaw' 2022-10-25 16:01:50.856 +08:00 [Debug] main Debug: removing "audio filter" module "scaletempo" 2022-10-25 16:01:50.851 +08:00 [Debug] main Debug: removing "packetizer" module "hevc" 2022-10-25 16:01:50.856 +08:00 [Debug] main Debug: removing "audio converter" module "audio_format" 2022-10-25 16:01:50.856 +08:00 [Debug] main Debug: removing "audio converter" module "trivial" 2022-10-25 16:01:50.856 +08:00 [Debug] main Debug: removing "audio resampler" module "soxr" 2022-10-25 16:01:50.856 +08:00 [Debug] directsound Debug: closing audio device 2022-10-25 16:01:50.872 +08:00 [Debug] main Debug: removing "audio volume" module "float_mixer" 2022-10-25 16:01:50.873 +08:00 [Debug] main Debug: keeping audio output 2022-10-25 16:01:50.874 +08:00 [Debug] main Debug: ES track deleted: 'video/auto/0' (fourcc: 'hevc') 2022-10-25 16:01:50.873 +08:00 [Debug] main Debug: ES track unselected: 'audio/auto/1' (fourcc: 'mlaw') 2022-10-25 16:01:50.873 +08:00 [Debug] main Debug: removing "access" module "live555" 2022-10-25 16:01:50.875 +08:00 [Debug] main Debug: ES track deleted: 'audio/auto/1' (fourcc: 'mlaw') 2022-10-25 16:01:50.875 +08:00 [Debug] main Debug: Program doesn't contain anymore ES 2022-10-25 16:01:50.885 +08:00 [Debug] main Debug: stop free vout 2022-10-25 16:01:50.885 +08:00 [Debug] main Debug: destroying input for 'rtsp://192.168.2.172/LiveMedia/ch1/Media1' 2022-10-25 16:01:50.907 +08:00 [Debug] main Debug: removing "inhibit" module "inhibit" 2022-10-25 16:01:50.909 +08:00 [Debug] main Error: window closed