modules/video_filter/Modules.am: added time, for those that don't know the

fen-trick
time.c: fixed a few copy/paste bugs and some warnings
parent 196d6b5a
...@@ -10,4 +10,5 @@ SOURCES_logo = logo.c ...@@ -10,4 +10,5 @@ SOURCES_logo = logo.c
SOURCES_deinterlace = deinterlace.c SOURCES_deinterlace = deinterlace.c
SOURCES_blend = blend.c SOURCES_blend = blend.c
SOURCES_scale = scale.c SOURCES_scale = scale.c
SOURCES_time = time.c
noinst_HEADERS += filter_common.h noinst_HEADERS += filter_common.h
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <vlc/vout.h> #include <vlc/vout.h>
#include "vlc_filter.h" #include "vlc_filter.h"
#include "filter_common.h"
#include "vlc_block.h" #include "vlc_block.h"
/***************************************************************************** /*****************************************************************************
...@@ -46,13 +45,6 @@ static subpicture_t *Filter( filter_t *, mtime_t ); ...@@ -46,13 +45,6 @@ static subpicture_t *Filter( filter_t *, mtime_t );
*****************************************************************************/ *****************************************************************************/
struct filter_sys_t struct filter_sys_t
{ {
picture_t *p_pic;
int i_width, i_height;
int posx, posy;
mtime_t i_last_date;
filter_t *p_text;
}; };
...@@ -62,8 +54,8 @@ struct filter_sys_t ...@@ -62,8 +54,8 @@ struct filter_sys_t
vlc_module_begin(); vlc_module_begin();
set_capability( "sub filter", 0 ); set_capability( "sub filter", 0 );
set_callbacks( CreateFilter, DestroyFilter ); set_callbacks( CreateFilter, DestroyFilter );
set_description( _("Logo sub filter") ); set_description( _("Time display sub filter") );
add_shortcut( "logo" ); add_shortcut( "time" );
vlc_module_end(); vlc_module_end();
/***************************************************************************** /*****************************************************************************
...@@ -116,9 +108,7 @@ char *myCtime( time_t *t ) ...@@ -116,9 +108,7 @@ char *myCtime( time_t *t )
****************************************************************************/ ****************************************************************************/
static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
{ {
filter_sys_t *p_sys = p_filter->p_sys;
subpicture_t *p_spu; subpicture_t *p_spu;
subpicture_region_t *p_region;
video_format_t fmt; video_format_t fmt;
time_t t; time_t t;
p_spu = p_filter->pf_sub_buffer_new( p_filter ); p_spu = p_filter->pf_sub_buffer_new( p_filter );
......
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