Commit 2d7ef1f4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: use vlc_custom_create

parent f8fbd684
...@@ -250,10 +250,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type ) ...@@ -250,10 +250,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
i_size = sizeof(filter_t); i_size = sizeof(filter_t);
psz_type = "filter"; psz_type = "filter";
break; break;
case VLC_OBJECT_VOUT:
i_size = sizeof(vout_thread_t);
psz_type = "video output";
break;
case VLC_OBJECT_AOUT: case VLC_OBJECT_AOUT:
i_size = sizeof(aout_instance_t); i_size = sizeof(aout_instance_t);
psz_type = "audio output"; psz_type = "audio output";
......
...@@ -243,7 +243,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt ) ...@@ -243,7 +243,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
char *psz_name; char *psz_name;
/* Allocate descriptor */ /* Allocate descriptor */
p_vout = vlc_object_create( p_parent, VLC_OBJECT_VOUT ); static const char typename[] = "video output";
p_vout = vlc_custom_create( p_parent, sizeof( *p_vout ), VLC_OBJECT_VOUT,
typename );
if( p_vout == NULL ) if( p_vout == NULL )
return NULL; return NULL;
......
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