#define VLC_OBJECT_ENCODER (-14)
#define VLC_OBJECT_ANNOUNCE (-17)
#define VLC_OBJECT_OPENGL (-21)
-#define VLC_OBJECT_FILTER (-22)
#define VLC_OBJECT_OSDMENU (-28)
/* Please add new object types below -34 */
/* Please do not add new object types anyway */
if( p_intf->p_sys->p_blend ) return VLC_EGENERIC;
p_intf->p_sys->p_blend =
- vlc_object_create( p_intf, VLC_OBJECT_FILTER );
+ vlc_object_create( p_intf, sizeof(filter_t) );
vlc_object_attach( p_intf->p_sys->p_blend, p_intf );
p_intf->p_sys->p_blend->fmt_out.video.i_x_offset =
p_intf->p_sys->p_blend->fmt_out.video.i_y_offset = 0;
if( p_intf->p_sys->p_text ) return VLC_EGENERIC;
p_intf->p_sys->p_text =
- vlc_object_create( p_intf, VLC_OBJECT_FILTER );
+ vlc_object_create( p_intf, sizeof(filter_t) );
vlc_object_attach( p_intf->p_sys->p_text, p_intf );
p_intf->p_sys->p_text->fmt_out.video.i_width =
{ VLC_OBJECT_ENCODER, "encoder" },
{ VLC_OBJECT_ANNOUNCE, "announce" },
{ VLC_OBJECT_OPENGL, "opengl" },
- { VLC_OBJECT_FILTER, "filter" },
{ VLC_OBJECT_OSDMENU, "osdmenu" },
{ VLC_OBJECT_GENERIC, "generic" },
{ 0, "" } };
if( p_sys->b_done )
return p_pic;
- p_blend = vlc_object_create( p_filter, VLC_OBJECT_FILTER );
+ p_blend = vlc_object_create( p_filter, sizeof(filter_t) );
if( !p_blend )
{
p_pic->pf_release( p_pic );
static filter_t *CreateFilter( vlc_object_t *p_this, video_format_t *fmt_in,
video_format_t *fmt_out )
{
- filter_t *p_filter = vlc_object_create( p_this, VLC_OBJECT_FILTER );
+ filter_t *p_filter = vlc_object_create( p_this, sizeof(filter_t) );
vlc_object_attach( p_filter, p_this );
p_filter->pf_vout_buffer_new = get_pic;
const es_format_t *p_fmt_out )
{
filter_t *p_filter =
- vlc_object_create( p_chain->p_this, VLC_OBJECT_FILTER );
+ vlc_object_create( p_chain->p_this, sizeof(filter_t) );
if( !p_filter ) return NULL;
vlc_object_attach( p_filter, p_chain->p_this );
{
filter_t *p_filter;
- p_filter = vlc_object_create( p_this, VLC_OBJECT_FILTER );
+ p_filter = vlc_object_create( p_this, sizeof(filter_t) );
vlc_object_attach( p_filter, p_this );
p_filter->pf_vout_buffer_new =
i_size = sizeof(encoder_t);
psz_type = "encoder";
break;
- case VLC_OBJECT_FILTER:
- i_size = sizeof(filter_t);
- psz_type = "filter";
- break;
case VLC_OBJECT_AOUT:
i_size = sizeof(aout_instance_t);
psz_type = "audio output";
p_vout->b_direct = 0;
/* Choose the best module */
- p_vout->p_chroma = vlc_object_create( p_vout, VLC_OBJECT_FILTER );
+ p_vout->p_chroma = vlc_object_create( p_vout, sizeof(filter_t) );
filter_t *p_chroma = p_vout->p_chroma;
vlc_object_attach( p_chroma, p_vout );
/* TODO: Set the fmt_in and fmt_out stuff here */
/* Load the blending module */
if( !p_spu->p_blend && p_region )
{
- p_spu->p_blend = vlc_object_create( p_spu, VLC_OBJECT_FILTER );
+ p_spu->p_blend = vlc_object_create( p_spu, sizeof(filter_t) );
vlc_object_attach( p_spu->p_blend, p_spu );
p_spu->p_blend->fmt_out.video.i_x_offset =
p_spu->p_blend->fmt_out.video.i_y_offset = 0;
{
char *psz_modulename = NULL;
- p_spu->p_text = vlc_object_create( p_spu, VLC_OBJECT_FILTER );
+ p_spu->p_text = vlc_object_create( p_spu, sizeof(filter_t) );
vlc_object_attach( p_spu->p_text, p_spu );
p_spu->p_text->fmt_out.video.i_width =
(((pi_scale_width[ SCALE_DEFAULT ] > 0) || (pi_scale_height[ SCALE_DEFAULT ] > 0)) &&
((pi_scale_width[ SCALE_DEFAULT ] != 1000) || (pi_scale_height[ SCALE_DEFAULT ] != 1000)))) )
{
- p_spu->p_scale = vlc_object_create( p_spu, VLC_OBJECT_FILTER );
+ p_spu->p_scale = vlc_object_create( p_spu, sizeof(filter_t));
vlc_object_attach( p_spu->p_scale, p_spu );
p_spu->p_scale->fmt_out.video.i_chroma =
p_spu->p_scale->fmt_in.video.i_chroma =