Commit 22040d1e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

VLC_OBJECT_OPENGL: nobody uses _find on this, useless

parent d47c4459
...@@ -270,12 +270,9 @@ static int CreateVout( vlc_object_t *p_this ) ...@@ -270,12 +270,9 @@ static int CreateVout( vlc_object_t *p_this )
/* Get window */ /* Get window */
p_sys->p_vout = 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 ) if( p_sys->p_vout == NULL )
{
msg_Err( p_vout, "out of memory" );
return VLC_ENOMEM; return VLC_ENOMEM;
}
vlc_object_attach( p_sys->p_vout, p_this ); vlc_object_attach( p_sys->p_vout, p_this );
p_sys->p_vout->i_window_width = p_vout->i_window_width; p_sys->p_vout->i_window_width = p_vout->i_window_width;
......
...@@ -201,7 +201,7 @@ static void* Thread( vlc_object_t *p_this ) ...@@ -201,7 +201,7 @@ static void* Thread( vlc_object_t *p_this )
/* Get on OpenGL provider */ /* Get on OpenGL provider */
p_thread->p_opengl = 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 ) if( p_thread->p_opengl == NULL )
{ {
vlc_restorecancel (canc); vlc_restorecancel (canc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment