Commit ae6af360 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* motion_detect: use playlist_Control's "lock" argument

* const string fixes 
* make a couple of functions static
parent 94a01b36
......@@ -54,7 +54,7 @@ static picture_t *Filter( filter_t *, picture_t * );
static int pi_color_values[] = {
0x00FF0000, 0x00FF00FF, 0x00FFFF00, 0x0000FF00, 0x000000FF, 0x0000FFFF };
static char *ppsz_color_descriptions[] = {
static const char *ppsz_color_descriptions[] = {
N_("Red"), N_("Fuchsia"), N_("Yellow"), N_("Lime"), N_("Blue"), N_("Aqua") };
......
......@@ -113,8 +113,8 @@ static int FilterCallback ( vlc_object_t *, char const *,
#define FILTER_CFG_PREFIX "sout-deinterlace-"
static char *mode_list[] = { "discard", "blend", "mean", "bob", "linear", "x" };
static char *mode_list_text[] = { N_("Discard"), N_("Blend"), N_("Mean"),
static const char *mode_list[] = { "discard", "blend", "mean", "bob", "linear", "x" };
static const char *mode_list_text[] = { N_("Discard"), N_("Blend"), N_("Mean"),
N_("Bob"), N_("Linear"), "X" };
vlc_module_begin();
......
......@@ -64,8 +64,8 @@ static void FilterHough ( filter_t *, picture_t *, picture_t * );
#define CARTOON_LONGTEXT N_("Apply cartoon effect. It is only used by " \
"\"gradient\" and \"edge\".")
static char *mode_list[] = { "gradient", "edge", "hough" };
static char *mode_list_text[] = { N_("Gradient"), N_("Edge"), N_("Hough") };
static const char *mode_list[] = { "gradient", "edge", "hough" };
static const char *mode_list_text[] = { N_("Gradient"), N_("Edge"), N_("Hough") };
#define FILTER_PREFIX "gradient-"
......
......@@ -93,7 +93,7 @@ static int LogoCallback( vlc_object_t *, char const *,
#define CFG_PREFIX "logo-"
static int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 };
static char *ppsz_pos_descriptions[] =
static const char *ppsz_pos_descriptions[] =
{ N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
......@@ -190,7 +190,7 @@ static picture_t *LoadImage( vlc_object_t *p_this, char *psz_filename )
* logo-transparency values.
*****************************************************************************/
#define LoadLogoList( a, b ) __LoadLogoList( VLC_OBJECT( a ), b )
void __LoadLogoList( vlc_object_t *p_this, logo_list_t *p_logo_list )
static void __LoadLogoList( vlc_object_t *p_this, logo_list_t *p_logo_list )
{
char *psz_list; /* the list: <logo>[,[<delay>[,[<alpha>]]]][;...] */
unsigned int i;
......@@ -263,7 +263,7 @@ void __LoadLogoList( vlc_object_t *p_this, logo_list_t *p_logo_list )
/*****************************************************************************
* FreeLogoList
*****************************************************************************/
void FreeLogoList( logo_list_t *p_logo_list )
static void FreeLogoList( logo_list_t *p_logo_list )
{
unsigned int i;
FREENULL( p_logo_list->psz_filename );
......
......@@ -173,11 +173,11 @@ struct filter_sys_t
"seems sensible." )
static int pi_pos_values[] = { 0, 1, 2 };
static char * ppsz_pos_descriptions[] =
static const char * ppsz_pos_descriptions[] =
{ N_("auto"), N_("fixed"), N_("offsets") };
static int pi_align_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 };
static char *ppsz_align_descriptions[] =
static const char *ppsz_align_descriptions[] =
{ N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
......@@ -241,7 +241,7 @@ static const char *ppsz_filter_options[] = {
* parse the "--mosaic-offsets x1,y1,x2,y2,x3,y3" parameter
* and set the corresponding struct filter_sys_t entries.
*****************************************************************************/
void mosaic_ParseSetOffsets( vlc_object_t *p_this, filter_sys_t *p_sys, char *psz_offsets )
static void mosaic_ParseSetOffsets( vlc_object_t *p_this, filter_sys_t *p_sys, char *psz_offsets )
{
if( psz_offsets[0] != 0 )
{
......
......@@ -408,7 +408,7 @@ static void MotionDetect( vout_thread_t *p_vout, picture_t *p_inpic,
msg_Dbg( p_vout, "Area(%d) matched, going to %s\n", i_area,
pp_curent_area->psz_mrl );
playlist_Control( p_vout->p_sys->p_playlist,
PLAYLIST_VIEWPLAY, NULL, p_item );
PLAYLIST_VIEWPLAY, VLC_TRUE, NULL, p_item );
pp_curent_area->i_matches = 0;
}
}
......
......@@ -281,7 +281,7 @@ static void End( vout_thread_t *p_vout )
#define SHUFFLE_WIDTH 81
#define SHUFFLE_HEIGHT 13
static char *shuffle_button[] =
static const char *shuffle_button[] =
{
".................................................................................",
".............. ............................ ........ ...... ...............",
......
......@@ -60,7 +60,7 @@ static int pi_color_values[] = { 0xf0000000, 0x00000000, 0x00808080, 0x00C0C0C0,
0x00FFFFFF, 0x00800000, 0x00FF0000, 0x00FF00FF, 0x00FFFF00,
0x00808000, 0x00008000, 0x00008080, 0x0000FF00, 0x00800080,
0x00000080, 0x000000FF, 0x0000FFFF};
static char *ppsz_color_descriptions[] = { N_("Default"), N_("Black"),
static const char *ppsz_color_descriptions[] = { N_("Default"), N_("Black"),
N_("Gray"), N_("Silver"), N_("White"), N_("Maroon"), N_("Red"),
N_("Fuchsia"), N_("Yellow"), N_("Olive"), N_("Green"),
N_("Teal"), N_("Lime"), N_("Purple"), N_("Navy"), N_("Blue"),
......@@ -156,7 +156,7 @@ struct filter_sys_t
"also use combinations of these values, eg 6 = top-right).")
static int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 };
static char *ppsz_pos_descriptions[] =
static const char *ppsz_pos_descriptions[] =
{ N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
......@@ -505,7 +505,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
/****************************************************************************
* download and resize image located at psz_url
***************************************************************************/
picture_t *LoadImage( filter_t *p_filter, const char *psz_url )
static picture_t *LoadImage( filter_t *p_filter, const char *psz_url )
{
filter_sys_t *p_sys = p_filter->p_sys;
......@@ -551,7 +551,7 @@ picture_t *LoadImage( filter_t *p_filter, const char *psz_url )
* remove all ' ' '\t' '\n' '\r' characters from the begining and end of the
* string.
***************************************************************************/
char *removeWhiteChars( char *psz_src )
static char *removeWhiteChars( char *psz_src )
{
char *psz_src2 = strdup( psz_src );
char *psz_clean = strdup( psz_src2 );
......
......@@ -57,8 +57,8 @@ static int SendEvents( vlc_object_t *, char const *,
#define TYPE_TEXT N_("Transform type")
#define TYPE_LONGTEXT N_("One of '90', '180', '270', 'hflip' and 'vflip'")
static char *type_list[] = { "90", "180", "270", "hflip", "vflip" };
static char *type_list_text[] = { N_("Rotate by 90 degrees"),
static const char *type_list[] = { "90", "180", "270", "hflip", "vflip" };
static const char *type_list_text[] = { N_("Rotate by 90 degrees"),
N_("Rotate by 180 degrees"), N_("Rotate by 270 degrees"),
N_("Flip horizontally"), N_("Flip vertically") };
......
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