]> git.sesse.net Git - vlc/commitdiff
Remove deadcode.
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 14 Jun 2008 09:16:38 +0000 (11:16 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Sat, 14 Jun 2008 14:19:22 +0000 (16:19 +0200)
projects/mozilla/vlcplugin.cpp

index 1dc9df94d4595aeb564fb461bc4899a50ff0bc23..65d090aa3df7f18299559d65a1f3ff86f6cac214 100644 (file)
@@ -234,39 +234,6 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
     return NPERR_NO_ERROR;
 }
 
-#if 0
-#ifdef XP_WIN
-/* This is really ugly but there is a deadlock when stopping a stream
- * (in VLC_CleanUp()) because the video output is a child of the drawable but
- * is in a different thread. */
-static void HackStopVout( VlcPlugin* p_plugin )
-{
-    MSG msg;
-    HWND hwnd;
-    vlc_value_t value;
-
-    int i_vlc = libvlc_get_vlc_id(p_plugin->libvlc_instance);
-    VLC_VariableGet( i_vlc, "drawable", &value );
-
-    hwnd = FindWindowEx( (HWND)value.i_int, 0, 0, 0 );
-    if( !hwnd ) return;
-
-    PostMessage( hwnd, WM_CLOSE, 0, 0 );
-
-    do
-    {
-        while( PeekMessage( &msg, (HWND)value.i_int, 0, 0, PM_REMOVE ) )
-        {
-            TranslateMessage(&msg);
-            DispatchMessage(&msg);
-        }
-        if( FindWindowEx( (HWND)value.i_int, 0, 0, 0 ) ) Sleep( 10 );
-    }
-    while( (hwnd = FindWindowEx( (HWND)value.i_int, 0, 0, 0 )) );
-}
-#endif /* XP_WIN */
-#endif
-
 VlcPlugin::~VlcPlugin()
 {
     delete psz_baseURL;