VLC_OBJECT_OPENGL: nobody uses _find on this, useless
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 28 Sep 2008 15:23:36 +0000 (18:23 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 28 Sep 2008 15:33:25 +0000 (18:33 +0300)
modules/video_output/opengl.c
modules/visualization/galaktos/plugin.c

index cb1fe52..3711dde 100644 (file)
@@ -270,12 +270,9 @@ static int CreateVout( vlc_object_t *p_this )
 
     /* Get window */
     p_sys->p_vout =
-        (vout_thread_t *)vlc_object_create( p_this, VLC_OBJECT_OPENGL );
+        (vout_thread_t *)vlc_object_create( p_this, sizeof( vout_thread_t ) );
     if( p_sys->p_vout == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
         return VLC_ENOMEM;
-    }
     vlc_object_attach( p_sys->p_vout, p_this );
 
     p_sys->p_vout->i_window_width = p_vout->i_window_width;
index 4a108e0..69d958d 100644 (file)
@@ -201,7 +201,7 @@ static void* Thread( vlc_object_t *p_this )
 
     /* Get on OpenGL provider */
     p_thread->p_opengl =
-        (vout_thread_t *)vlc_object_create( p_this, VLC_OBJECT_OPENGL );
+        (vout_thread_t *)vlc_object_create( p_this, sizeof( vout_thread_t ) );
     if( p_thread->p_opengl == NULL )
     {
         vlc_restorecancel (canc);