Page 1 of 1

libvlc clear surface with black screen after stop operation

Posted: 15 Dec 2020 12:26
by furkanka50
Hello. I am using libvlc. I want to clear surface after stop player. Here is my stop codes. Nothing works as I expected.

Code: Select all

libvlc_media_player_set_hwnd(m_player->core(), (void*)0); libvlc_media_player_stop(m_player->core()); libvlc_media_player_release(m_player->core()); libvlc_release(m_instance->core());
How can I get black screen after stop?

Re: libvlc clear surface with black screen after stop operation

Posted: 15 Dec 2020 15:39
by Rémi Denis-Courmont
That's obviously out of scope. How would a LibVLC player paint when you have destroyed it?!

Re: libvlc clear surface with black screen after stop operation

Posted: 16 Dec 2020 03:28
by mfkl
That's obviously out of scope.
No, it's obviously not.
I want to clear surface after stop player.
This isn't currently done by libvlc, you will have to clear the surface yourself after stop. It has been reported to me before (https://code.videolan.org/videolan/LibV ... issues/260) and it appears several libvlc users expect libvlc to clear the surface after stop is called.

Re: libvlc clear surface with black screen after stop operation

Posted: 17 Dec 2020 09:33
by Rémi Denis-Courmont
That's obviously out of scope.
No, it's obviously not.
Yes, it obviously is.

Re: libvlc clear surface with black screen after stop operation

Posted: 18 Dec 2020 05:48
by mfkl
Yes, it obviously is.
Oh ok you convinced me.
Image