]> git.sesse.net Git - vlc/commitdiff
Transform: remove dead code
authorGuillaume Poussel <gpoussel@gmail.com>
Mon, 31 Jan 2011 10:34:29 +0000 (11:34 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 31 Jan 2011 10:57:41 +0000 (11:57 +0100)
Oked-by: Laurent Aimar
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_filter/transform.c

index 72dcd704ee36de43bfc75215bf6ba11a9f23dcac..35134247fea7b156454cd7a194abf7d340275670 100644 (file)
@@ -250,56 +250,6 @@ static void Close(vlc_object_t *object)
 }
 
 #if 0
-/*****************************************************************************
- * Init: initialize Transform video thread output method
- *****************************************************************************/
-static int Init( vout_thread_t *p_vout )
-{
-    video_format_t fmt;
-
-    I_OUTPUTPICTURES = 0;
-    memset( &fmt, 0, sizeof(video_format_t ) );
-
-    /* Initialize the output structure */
-    p_vout->output.i_chroma = p_vout->render.i_chroma;
-    p_vout->output.i_width  = p_vout->render.i_width;
-    p_vout->output.i_height = p_vout->render.i_height;
-    p_vout->output.i_aspect = p_vout->render.i_aspect;
-    p_vout->fmt_out = p_vout->fmt_in;
-    fmt = p_vout->fmt_out;
-
-    /* Try to open the real video output */
-    msg_Dbg( p_vout, "spawning the real video output" );
-
-    if( p_vout->p_sys->b_rotation )
-    {
-        fmt.i_width = p_vout->fmt_out.i_height;
-        fmt.i_visible_width = p_vout->fmt_out.i_visible_height;
-        fmt.i_x_offset = p_vout->fmt_out.i_y_offset;
-
-        fmt.i_height = p_vout->fmt_out.i_width;
-        fmt.i_visible_height = p_vout->fmt_out.i_visible_width;
-        fmt.i_y_offset = p_vout->fmt_out.i_x_offset;
-
-        fmt.i_sar_num = p_vout->fmt_out.i_sar_den;
-        fmt.i_sar_den = p_vout->fmt_out.i_sar_num;
-    }
-
-    p_vout->p_sys->p_vout = vout_Create( p_vout, &fmt );
-
-    /* Everything failed */
-    if( p_vout->p_sys->p_vout == NULL )
-    {
-        msg_Err( p_vout, "cannot open vout, aborting" );
-        return VLC_EGENERIC;
-    }
-
-    vout_filter_AllocateDirectBuffers( p_vout, VOUT_MAX_PICTURES );
-
-    vout_filter_AddChild( p_vout, p_vout->p_sys->p_vout, MouseEvent );
-
-    return VLC_SUCCESS;
-}
 static void FilterI422( vout_thread_t *p_vout,
                         const picture_t *p_pic, picture_t *p_outpic )
 {