* fbosd.c : framebuffer osd plugin for vlc
*****************************************************************************
* Copyright (C) 2007, the VideoLAN team
- * $Id: vlc-fb-overlay.patch,v 1.8 2007/10/19 14:33:23 jeanpaul.saman Exp $
+ * $Id$
*
* Authors: Jean-Paul Saman
* Copied from modules/video_output/fb.c by Samuel Hocevar <sam@zoy.org>
p_intf->p_sys->p_blend->p_module );
vlc_object_detach( p_intf->p_sys->p_blend );
- vlc_object_destroy( p_intf->p_sys->p_blend );
+ vlc_object_release( p_intf->p_sys->p_blend );
}
}
#endif
p_intf->p_sys->p_text->p_module =
module_Need( p_intf->p_sys->p_text, "text renderer", 0, 0 );
}
- if( psz_modulename ) free( psz_modulename );
+ free( psz_modulename );
if( !p_intf->p_sys->p_text->p_module )
return VLC_EGENERIC;
p_intf->p_sys->p_text->p_module );
vlc_object_detach( p_intf->p_sys->p_text );
- vlc_object_destroy( p_intf->p_sys->p_text );
+ vlc_object_release( p_intf->p_sys->p_text );
}
}
#if 0
p_intf->p_sys->p_scale->p_module );
vlc_object_detach( p_intf->p_sys->p_scale );
- vlc_object_destroy( p_intf->p_sys->p_scale );
+ vlc_object_release( p_intf->p_sys->p_scale );
}
}
#endif
static void DeAllocatePicture( vlc_object_t *p_this, picture_t *p_pic,
video_format_t *p_fmt )
{
- if( p_pic && p_pic->p_data_orig ) free( p_pic->p_data_orig );
- if( p_pic && p_pic->pf_release ) p_pic->pf_release( p_pic );
- if( p_fmt && p_fmt->p_palette )
+ if( p_pic )
+ {
+ free( p_pic->p_data_orig );
+ if( p_pic->pf_release ) p_pic->pf_release( p_pic );
+ }
+ if( p_fmt )
{
free( p_fmt->p_palette );
p_fmt->p_palette = NULL;