libvlc_media_player_stop() hangs if calling from Win32 Menu

This forum is about all development around libVLC.
DsChAeK
Blank Cone
Blank Cone
Posts: 59
Joined: 01 Mar 2008 14:54
VLC version: newest
Operating System: windows

libvlc_media_player_stop() hangs if calling from Win32 Menu

Postby DsChAeK » 12 Jun 2010 12:34

I found out that if I call libvlc_media_player_stop during playback and video output set to a panel
(with libvlc_media_player_set_hwnd) the function don't give any response back. Windows starts dumprep.exe
if I try to close my application. This happens only if the collapsed menu, where I click the item, is over the video panel!
Tested on WinXP and Win7.
I also made ticket 3740!

with regards,
DsChAeK

DsChAeK
Blank Cone
Blank Cone
Posts: 59
Joined: 01 Mar 2008 14:54
VLC version: newest
Operating System: windows

Re: libvlc_media_player_stop() hangs if calling from Win32 M

Postby DsChAeK » 28 Jun 2010 18:43

It seems I found a workaround for me.

Menu-Callback:

Code: Select all

procedure TForm1.StopClick(Sender: TObject); begin // simulate mouse left click down PostMessage(self.Handle, WM_LBUTTONDOWN, MK_LBUTTON, 0); Delay(20); // loop 20ms and do process messages! // stop media_player libvlc_media_player_stop(FPlayer); // simulate mouse left click up PostMessage(self.Handle, WM_LBUTTONUP, MK_LBUTTON, 0); end;

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

Re: libvlc_media_player_stop() hangs if calling from Win32 M

Postby Rémi Denis-Courmont » 06 Jul 2010 18:15

I think it is fair to say that there are absolutely no developers and testers for LibVLC on Windows. It should then be surprise that they are horrible bugs, especially on code paths that are not exercised by the VLC media player itself (such as _set_hwnd). This seems highly unlikely to improve until some of the LibVLC "users" get involved in VLC development, as the Phonon/Linux community already does (a very little).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests