X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fmsw%2Fevents.c;h=7f1aefc594bddb2954488156234153eed79ae026;hb=756001fb493805399a1802dfd0b169dee89e635d;hp=486791722e735ffd8a89c43b15aef06e2915da1e;hpb=755664e5c0481e9856b2cf1fc46b6cc5cb7f27cc;p=vlc diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c index 486791722e..7f1aefc594 100644 --- a/modules/video_output/msw/events.c +++ b/modules/video_output/msw/events.c @@ -861,12 +861,11 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message, /* the user wants to close the window */ case WM_CLOSE: { - playlist_t * p_playlist = vlc_object_find( p_vout, - VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); + playlist_t * p_playlist = pl_Yield( p_vout ); if( p_playlist ) { playlist_Stop( p_playlist ); - vlc_object_release( p_playlist ); + pl_Release( p_playlist ); } return 0; }