Commit 63a67c18 authored by Rémi Duraffort's avatar Rémi Duraffort

video_filters: remove unused p_sys structure.

parent 9bf4d5d3
...@@ -56,16 +56,6 @@ vlc_module_begin () ...@@ -56,16 +56,6 @@ vlc_module_begin ()
set_callbacks( Create, Destroy ) set_callbacks( Create, Destroy )
vlc_module_end () vlc_module_end ()
/*****************************************************************************
* filter_sys_t: Invert video output method descriptor
*****************************************************************************
* This structure is part of the video output thread descriptor.
* It describes the Invert specific properties of an output thread.
*****************************************************************************/
struct filter_sys_t
{
};
/***************************************************************************** /*****************************************************************************
* Create: allocates Invert video thread output method * Create: allocates Invert video thread output method
***************************************************************************** *****************************************************************************
...@@ -75,11 +65,6 @@ static int Create( vlc_object_t *p_this ) ...@@ -75,11 +65,6 @@ static int Create( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_t *)p_this; filter_t *p_filter = (filter_t *)p_this;
/* Allocate structure */
p_filter->p_sys = malloc( sizeof( filter_sys_t ) );
if( p_filter->p_sys == NULL )
return VLC_ENOMEM;
p_filter->pf_video_filter = Filter; p_filter->pf_video_filter = Filter;
return VLC_SUCCESS; return VLC_SUCCESS;
...@@ -92,9 +77,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -92,9 +77,7 @@ static int Create( vlc_object_t *p_this )
*****************************************************************************/ *****************************************************************************/
static void Destroy( vlc_object_t *p_this ) static void Destroy( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_t *)p_this; (void)p_this;
free( p_filter->p_sys );
} }
/***************************************************************************** /*****************************************************************************
......
...@@ -32,15 +32,6 @@ ...@@ -32,15 +32,6 @@
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_filter.h> #include <vlc_filter.h>
/*****************************************************************************
* filter_sys_t : filter descriptor
*****************************************************************************/
struct filter_sys_t
{
es_format_t fmt_in;
es_format_t fmt_out;
};
/**************************************************************************** /****************************************************************************
* Local prototypes * Local prototypes
****************************************************************************/ ****************************************************************************/
...@@ -64,7 +55,6 @@ vlc_module_end () ...@@ -64,7 +55,6 @@ vlc_module_end ()
static int OpenFilter( vlc_object_t *p_this ) static int OpenFilter( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_t*)p_this; filter_t *p_filter = (filter_t*)p_this;
filter_sys_t *p_sys;
/* XXX Only support RV24 -> RV32 conversion */ /* XXX Only support RV24 -> RV32 conversion */
if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_RGB24 || if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_RGB24 ||
...@@ -78,11 +68,6 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -78,11 +68,6 @@ static int OpenFilter( vlc_object_t *p_this )
|| p_filter->fmt_in.video.i_height != p_filter->fmt_out.video.i_height ) || p_filter->fmt_in.video.i_height != p_filter->fmt_out.video.i_height )
return -1; return -1;
/* 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; p_filter->pf_video_filter = Filter;
return VLC_SUCCESS; return VLC_SUCCESS;
...@@ -93,10 +78,7 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -93,10 +78,7 @@ static int OpenFilter( vlc_object_t *p_this )
*****************************************************************************/ *****************************************************************************/
static void CloseFilter( vlc_object_t *p_this ) static void CloseFilter( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_t*)p_this; (void)p_this;
filter_sys_t *p_sys = p_filter->p_sys;
free( p_sys );
} }
/**************************************************************************** /****************************************************************************
......
...@@ -34,15 +34,6 @@ ...@@ -34,15 +34,6 @@
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_filter.h> #include <vlc_filter.h>
/*****************************************************************************
* filter_sys_t : filter descriptor
*****************************************************************************/
struct filter_sys_t
{
es_format_t fmt_in;
es_format_t fmt_out;
};
/**************************************************************************** /****************************************************************************
* Local prototypes * Local prototypes
****************************************************************************/ ****************************************************************************/
...@@ -66,7 +57,6 @@ vlc_module_end () ...@@ -66,7 +57,6 @@ vlc_module_end ()
static int OpenFilter( vlc_object_t *p_this ) static int OpenFilter( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_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 && if( ( p_filter->fmt_in.video.i_chroma != VLC_CODEC_YUVP &&
p_filter->fmt_in.video.i_chroma != VLC_CODEC_YUVA && p_filter->fmt_in.video.i_chroma != VLC_CODEC_YUVA &&
...@@ -79,11 +69,6 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -79,11 +69,6 @@ static int OpenFilter( vlc_object_t *p_this )
return VLC_EGENERIC; 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; p_filter->pf_video_filter = Filter;
msg_Dbg( p_filter, "%ix%i -> %ix%i", p_filter->fmt_in.video.i_width, msg_Dbg( p_filter, "%ix%i -> %ix%i", p_filter->fmt_in.video.i_width,
...@@ -98,10 +83,7 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -98,10 +83,7 @@ static int OpenFilter( vlc_object_t *p_this )
*****************************************************************************/ *****************************************************************************/
static void CloseFilter( vlc_object_t *p_this ) static void CloseFilter( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_t*)p_this; (void)p_this;
filter_sys_t *p_sys = p_filter->p_sys;
free( p_sys );
} }
/**************************************************************************** /****************************************************************************
......
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