]> git.sesse.net Git - vlc/commitdiff
Remove unused VOUT_PARENT
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 4 Mar 2009 17:36:33 +0000 (19:36 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 4 Mar 2009 17:36:33 +0000 (19:36 +0200)
By the way:
 - the OSX implementation seemed buggy w.r.t. fullscreen,
 - the X11 implementation seemed buggy w.r.t. both vout_window and events,
 - the OMAPFB implementation was bogus.

include/vlc_vout.h
modules/gui/macosx/voutgl.m
modules/gui/minimal_macosx/voutagl.m
modules/video_output/msw/events.c
modules/video_output/omapfb.c
modules/video_output/x11/xcommon.c

index 059ffea33bed3d585a5b505e2ae49e96a07c9ef4..c322288805c40bd397e7c27a96163f08294b76f8 100644 (file)
@@ -707,7 +707,6 @@ enum output_query_e
 {
     VOUT_SET_SIZE,         /* arg1= unsigned int, arg2= unsigned int, res= */
     VOUT_SET_STAY_ON_TOP,  /* arg1= bool       res=    */
-    VOUT_REPARENT,
     VOUT_SET_VIEWPORT,      /* arg1= view rect, arg2=clip rect, res= */
     VOUT_REDRAW_RECT,       /* arg1= area rect, res= */
 };
index 47dac9ee352f03505cb052b24cbb52baa9480924..2b3f0c1099569d1f3bd77671e128de6752d7db82 100644 (file)
@@ -779,17 +779,6 @@ static int aglControl( vout_thread_t *p_vout, int i_query, va_list args )
             return VLC_SUCCESS;
         }
 
-        case VOUT_REPARENT:
-        {
-            AGLDrawable drawable = (AGLDrawable)va_arg( args, int);
-            if( !p_vout->b_fullscreen && drawable != p_vout->p_sys->agl_drawable )
-            {
-                p_vout->p_sys->agl_drawable = drawable;
-                aglSetDrawable(p_vout->p_sys->agl_ctx, drawable);
-            }
-            return VLC_SUCCESS;
-        }
-
         default:
             return VLC_EGENERIC;
     }
index 68c20e9556b8a9a66a3ccac2a2d3df576757079e..5554200c12b89ca9d9735ad0e67487cc70b9fe0d 100644 (file)
@@ -367,17 +367,6 @@ int aglControl( vout_thread_t *p_vout, int i_query, va_list args )
             return VLC_SUCCESS;
         }
 
-        case VOUT_REPARENT:
-        {
-            AGLDrawable drawable = (AGLDrawable)va_arg( args, int);
-            if( !p_vout->b_fullscreen && drawable != p_vout->p_sys->agl_drawable )
-            {
-                p_vout->p_sys->agl_drawable = drawable;
-                aglSetDrawable(p_vout->p_sys->agl_ctx, drawable);
-            }
-            return VLC_SUCCESS;
-        }
-
         default:
             return VLC_EGENERIC;
     }
index 6dea945a5573f2ed65fe71bfd8aae08eac19dcde..73822ac6f1eb6255263d92f8ef8f6bdac2f63904 100644 (file)
@@ -1062,50 +1062,6 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
 
         return VLC_SUCCESS;
 
-    case VOUT_REPARENT:
-        /* Retrieve the window position */
-        point.x = point.y = 0;
-        ClientToScreen( p_vout->p_sys->hwnd, &point );
-
-        HWND d = 0;
-
-        if( i_query == VOUT_REPARENT ) d = (HWND)va_arg( args, int );
-        if( !d )
-        {
-            vlc_mutex_lock( &p_vout->p_sys->lock );
-            p_vout->p_sys->hparent = 0;
-            vlc_mutex_unlock( &p_vout->p_sys->lock );
-            SetParent( p_vout->p_sys->hwnd, 0 );
-            p_vout->p_sys->i_window_style =
-                WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW | WS_SIZEBOX;
-            SetWindowLong( p_vout->p_sys->hwnd, GWL_STYLE,
-                           p_vout->p_sys->i_window_style | WS_VISIBLE);
-            SetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW );
-            SetWindowPos( p_vout->p_sys->hwnd, 0, point.x, point.y, 0, 0,
-                          SWP_NOSIZE|SWP_NOZORDER|SWP_FRAMECHANGED );
-        }
-        else
-        {
-            vlc_mutex_lock( &p_vout->p_sys->lock );
-            p_vout->p_sys->hparent = d;
-            vlc_mutex_unlock( &p_vout->p_sys->lock );
-
-            SetParent( p_vout->p_sys->hwnd, d );
-            p_vout->p_sys->i_window_style = WS_CLIPCHILDREN;
-            SetWindowLong( p_vout->p_sys->hwnd, GWL_STYLE,
-                           p_vout->p_sys->i_window_style | WS_VISIBLE);
-            SetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE, WS_EX_APPWINDOW );
-
-            /* Retrieve the parent size */
-            RECT  rect;
-            GetClientRect( d, &rect );
-            SetWindowPos( p_vout->p_sys->hwnd, d, point.x, point.y, rect.right, rect.bottom,
-                          SWP_FRAMECHANGED );
-        }
-
-        vout_ReleaseWindow( p_vout->p_sys->parent_window );
-        return VLC_SUCCESS;
-
     case VOUT_SET_STAY_ON_TOP:
         if( p_vout->p_sys->hparent && !var_GetBool( p_vout, "fullscreen" ) )
             return vaControlParentWindow( p_vout, i_query, args );
index 4812b626ed16779ce777b21ea2d7ca2616c77a1e..8a3337110fe5559276b12dd0192b976aff55857f 100644 (file)
@@ -373,14 +373,7 @@ static void End( vout_thread_t *p_vout )
  *****************************************************************************/
 static int Control( vout_thread_t *p_vout, int i_query, va_list args )
 {
-    switch( i_query )
-    {
-       case VOUT_REPARENT:
-            vout_ReleaseWindow( p_vout->p_sys->owner_window );
-            return VLC_SUCCESS;
-       default:
-            return VLC_EGENERIC;
-    }
+    return VLC_EGENERIC;
 }
 
 /*****************************************************************************
index 699a8cc550c1fe1a0652c9338babf04c6846be7f..7c05a88f4aea3cb236e36b5c0269cf9986e0e726 100644 (file)
@@ -3150,30 +3150,6 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
 #endif
             return VLC_SUCCESS;
 
-       case VOUT_REPARENT:
-            if( i_query == VOUT_REPARENT ) d = (Drawable)va_arg( args, int );
-            if( !d )
-            {
-#ifdef MODULE_NAME_IS_xvmc
-            xvmc_context_reader_lock( &p_vout->p_sys->xvmc_lock );
-#endif
-            XReparentWindow( p_vout->p_sys->p_display,
-                             p_vout->p_sys->original_window.base_window,
-                             DefaultRootWindow( p_vout->p_sys->p_display ),
-                             0, 0 );
-            }
-            else
-            XReparentWindow( p_vout->p_sys->p_display,
-                             p_vout->p_sys->original_window.base_window,
-                             d, 0, 0);
-            XSync( p_vout->p_sys->p_display, False );
-#ifdef MODULE_NAME_IS_xvmc
-            xvmc_context_reader_unlock( &p_vout->p_sys->xvmc_lock );
-#endif
-            vout_ReleaseWindow( p_vout->p_sys->p_win->owner_window );
-            p_vout->p_sys->original_window.owner_window = NULL;
-            return VLC_SUCCESS;
-
         case VOUT_SET_STAY_ON_TOP:
             if( p_vout->p_sys->p_win->owner_window )
                 return vout_ControlWindow( p_vout->p_sys->p_win->owner_window,