X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_filter%2Fscale.c;h=0f72c5bd24bb0504e9e772be6f563aa618f63203;hb=c60652e38ac6afd74bd8225e9dae5406f13aaa4f;hp=38902b225cd60a2fb8a2f92ecf2c84ca81c6f338;hpb=51cb4767dcf03ccb235862ca39c49305b4d75605;p=vlc diff --git a/modules/video_filter/scale.c b/modules/video_filter/scale.c index 38902b225c..0f72c5bd24 100644 --- a/modules/video_filter/scale.c +++ b/modules/video_filter/scale.c @@ -34,21 +34,10 @@ #include #include -/***************************************************************************** - * filter_sys_t : filter descriptor - *****************************************************************************/ -struct filter_sys_t -{ - es_format_t fmt_in; - es_format_t fmt_out; -}; - /**************************************************************************** * Local prototypes ****************************************************************************/ static int OpenFilter ( vlc_object_t * ); -static void CloseFilter( vlc_object_t * ); - static picture_t *Filter( filter_t *, picture_t * ); /***************************************************************************** @@ -57,7 +46,7 @@ static picture_t *Filter( filter_t *, picture_t * ); vlc_module_begin () set_description( N_("Video scaling filter") ) set_capability( "video filter2", 10 ) - set_callbacks( OpenFilter, CloseFilter ) + set_callbacks( OpenFilter, NULL ) vlc_module_end () /***************************************************************************** @@ -66,7 +55,6 @@ vlc_module_end () static int OpenFilter( vlc_object_t *p_this ) { filter_t *p_filter = (filter_t*)p_this; - filter_sys_t *p_sys; if( ( p_filter->fmt_in.video.i_chroma != VLC_CODEC_YUVP && p_filter->fmt_in.video.i_chroma != VLC_CODEC_YUVA && @@ -79,11 +67,6 @@ static int OpenFilter( vlc_object_t *p_this ) return VLC_EGENERIC; } - /* Allocate the memory needed to store the decoder's structure */ - if( ( p_filter->p_sys = p_sys = - (filter_sys_t *)malloc(sizeof(filter_sys_t)) ) == NULL ) - return VLC_ENOMEM; - p_filter->pf_video_filter = Filter; msg_Dbg( p_filter, "%ix%i -> %ix%i", p_filter->fmt_in.video.i_width, @@ -93,17 +76,6 @@ static int OpenFilter( vlc_object_t *p_this ) return VLC_SUCCESS; } -/***************************************************************************** - * CloseFilter: clean up the filter - *****************************************************************************/ -static void CloseFilter( vlc_object_t *p_this ) -{ - filter_t *p_filter = (filter_t*)p_this; - filter_sys_t *p_sys = p_filter->p_sys; - - free( p_sys ); -} - /**************************************************************************** * Filter: the whole thing ****************************************************************************/