mirror of https://github.com/mpv-player/mpv
small fix to properly display skins when switching skins during playback.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18959 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a0b3f86c4d
commit
2670f98ab4
|
@ -724,6 +724,7 @@ static LRESULT CALLBACK SkinBrowserWndProc(HWND hwnd, UINT iMsg, WPARAM wParam,
|
|||
int len = SendMessage(listbox, LB_GETTEXTLEN, index, 0);
|
||||
if (len)
|
||||
{
|
||||
if (guiIntfStruct.Playing) guiGetEvent(guiCEvent, (void *) guiSetStop);
|
||||
if (skinName) free(skinName);
|
||||
skinName = (char *) malloc(len+1);
|
||||
SendMessage(listbox, LB_GETTEXT, (WPARAM) index, (LPARAM) skinName);
|
||||
|
|
Loading…
Reference in New Issue