Commit aa401e54 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

OSD: remove unused (and obtained unsafely) SPU parameter

parent 15ad11f1
......@@ -42,7 +42,7 @@
static void DrawRect( subpicture_t *, int, int, int, int, short );
static void DrawTriangle( subpicture_t *, int, int, int, int, short );
static int CreatePicture( spu_t *, subpicture_t *, int, int, int, int );
static subpicture_t *osd_CreateWidget( spu_t *, int );
static subpicture_t *osd_CreateWidget( int );
/*****************************************************************************
* Draws a rectangle at the given position in the subpic.
......@@ -190,13 +190,11 @@ static int CreatePicture( spu_t *p_spu, subpicture_t *p_subpic,
/*****************************************************************************
* Creates and initializes an OSD widget.
*****************************************************************************/
subpicture_t *osd_CreateWidget( spu_t *p_spu, int i_channel )
static subpicture_t *osd_CreateWidget( int i_channel )
{
subpicture_t *p_subpic;
mtime_t i_now = mdate();
VLC_UNUSED(p_spu);
/* Create and initialize a subpicture */
p_subpic = subpicture_New();
if( p_subpic == NULL ) return NULL;
......@@ -223,7 +221,7 @@ int osd_Slider( vlc_object_t *p_this, spu_t *p_spu,
int i_x_margin, i_y_margin, i_x, i_y, i_width, i_height;
(void)p_this;
p_subpic = osd_CreateWidget( p_spu, i_channel );
p_subpic = osd_CreateWidget( i_channel );
if( p_subpic == NULL )
{
return VLC_EGENERIC;
......@@ -286,7 +284,7 @@ int osd_Icon( vlc_object_t *p_this, spu_t *p_spu,
int i_x_margin, i_y_margin, i_x, i_y, i_width, i_height;
(void)p_this;
p_subpic = osd_CreateWidget( p_spu, i_channel );
p_subpic = osd_CreateWidget( i_channel );
if( p_subpic == NULL )
{
return VLC_EGENERIC;
......
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