From 2d7ef1f4bb145fd0ea210edefd32f60e2eabb214 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 28 Jun 2008 21:22:24 +0300 Subject: [PATCH] vout: use vlc_custom_create --- src/misc/objects.c | 4 ---- src/video_output/video_output.c | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/misc/objects.c b/src/misc/objects.c index c4b79ed4c7..fd9e4135fe 100644 --- a/src/misc/objects.c +++ b/src/misc/objects.c @@ -250,10 +250,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type ) i_size = sizeof(filter_t); psz_type = "filter"; break; - case VLC_OBJECT_VOUT: - i_size = sizeof(vout_thread_t); - psz_type = "video output"; - break; case VLC_OBJECT_AOUT: i_size = sizeof(aout_instance_t); psz_type = "audio output"; diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c index eb64a3e7be..ff29b2783b 100644 --- a/src/video_output/video_output.c +++ b/src/video_output/video_output.c @@ -243,7 +243,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt ) char *psz_name; /* 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 ) return NULL; -- 2.39.2