libvlc clear surface with black screen after stop operation

This forum is about all development around libVLC.
furkanka50
New Cone
New Cone
Posts: 5
Joined: 03 Dec 2020 11:47

libvlc clear surface with black screen after stop operation

Postby furkanka50 » 15 Dec 2020 12:26

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc clear surface with black screen after stop operation

Postby Rémi Denis-Courmont » 15 Dec 2020 15:39

That's obviously out of scope. How would a LibVLC player paint when you have destroyed it?!
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: libvlc clear surface with black screen after stop operation

Postby mfkl » 16 Dec 2020 03:28

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.
https://mfkl.github.io

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc clear surface with black screen after stop operation

Postby Rémi Denis-Courmont » 17 Dec 2020 09:33

That's obviously out of scope.
No, it's obviously not.
Yes, it obviously is.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: libvlc clear surface with black screen after stop operation

Postby mfkl » 18 Dec 2020 05:48

Yes, it obviously is.
Oh ok you convinced me.
Image
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests