[vlc-devel] commit: Use pl_Yield and pl_Release everywhere. ( Rémi Duraffort )

git version control git at videolan.org
Tue Jul 22 22:57:17 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 21 18:40:02 2008 +0200| [756001fb493805399a1802dfd0b169dee89e635d]

Use pl_Yield and pl_Release everywhere.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=756001fb493805399a1802dfd0b169dee89e635d
---

 modules/video_output/msw/events.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index 4867917..7f1aefc 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;
     }




More information about the vlc-devel mailing list