git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
755664e
)
Use pl_Yield and pl_Release everywhere.
author
Rémi Duraffort
<ivoire@videolan.org>
Mon, 21 Jul 2008 16:40:02 +0000
(18:40 +0200)
committer
Rémi Duraffort
<ivoire@videolan.org>
Tue, 22 Jul 2008 20:46:15 +0000
(22:46 +0200)
modules/video_output/msw/events.c
patch
|
blob
|
history
diff --git
a/modules/video_output/msw/events.c
b/modules/video_output/msw/events.c
index
4867917
..
7f1aefc
100644
(file)
--- 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_r
elease( p_playlist );
+
pl_R
elease( p_playlist );
}
return 0;
}