Page 1 of 1

libvlc_media_player_stop() hangs if calling from Win32 Menu

Posted: 12 Jun 2010 12:34
by DsChAeK
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

Re: libvlc_media_player_stop() hangs if calling from Win32 M

Posted: 28 Jun 2010 18:43
by DsChAeK
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;

Re: libvlc_media_player_stop() hangs if calling from Win32 M

Posted: 06 Jul 2010 18:15
by RĂ©mi Denis-Courmont
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).