if ( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' )
|| p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
{
- msg_Warn( p_filter, "Bad input or output format" );
+ msg_Warn( p_filter, "bad input or output format" );
return VLC_EGENERIC;
}
if ( !AOUT_FMTS_SIMILAR( &p_filter->input, &p_filter->output ) )
module_Need( p_thread->p_opengl, "opengl provider", NULL, 0 );
if( p_thread->p_module == NULL )
{
- msg_Err( p_thread, "No OpenGL provider found" );
+ msg_Err( p_thread, "no OpenGL provider found" );
vlc_object_detach( p_thread->p_opengl );
vlc_object_destroy( p_thread->p_opengl );
return;
if ( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' )
|| p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
{
- msg_Warn( p_filter, "Bad input or output format" );
+ msg_Warn( p_filter, "bad input or output format" );
return VLC_EGENERIC;
}
if ( !AOUT_FMTS_SIMILAR( &p_filter->input, &p_filter->output ) )
if( !p_s16_buff )
{
- msg_Err(p_aout,"Out of memory");
+ msg_Err(p_aout,"out of memory");
return -1;
}
p_effect->p_data=(void *)malloc(i_nb_bands * sizeof(int) );
if( !p_effect->p_data)
{
- msg_Err(p_aout,"Out of memory");
+ msg_Err(p_aout,"out of memory");
return -1;
}
peaks = (int *)p_effect->p_data;
height = (int *)malloc( i_nb_bands * sizeof(int) );
if( !height)
{
- msg_Err(p_aout,"Out of memory");
+ msg_Err(p_aout,"out of memory");
return -1;
}
/* Convert the buffer to int16_t */
p_state = visual_fft_init();
if( !p_state)
{
- msg_Err(p_aout,"Unable to initialize FFT transform");
+ msg_Err(p_aout,"unable to initialize FFT transform");
return -1;
}
p_buffs = p_s16_buff;
if( !p_s16_buff )
{
- msg_Err(p_aout,"Out of memory");
+ msg_Err(p_aout,"out of memory");
return -1;
}
p_effect->p_data=(void *)malloc(i_nb_bands * sizeof(int) );
if( !p_effect->p_data)
{
- msg_Err(p_aout,"Out of memory");
+ msg_Err(p_aout,"out of memory");
return -1;
}
peaks = (int *)p_effect->p_data;
height = (int *)malloc( i_nb_bands * sizeof(int) );
if( !height)
{
- msg_Err(p_aout,"Out of memory");
+ msg_Err(p_aout,"out of memory");
return -1;
}
p_state = visual_fft_init();
if( !p_state)
{
- msg_Err(p_aout,"Unable to initialize FFT transform");
+ msg_Err(p_aout,"unable to initialize FFT transform");
return -1;
}
p_buffs = p_s16_buff;
#define ELIST_TEXT N_( "Effects list" )
#define ELIST_LONGTEXT N_( \
"A list of visual effect, separated by commas.\n" \
- "Current effects include: dummy, scope, spectrum" )
+ "Current effects include: dummy, scope, spectrum." )
#define WIDTH_TEXT N_( "Video width" )
#define WIDTH_LONGTEXT N_( \
if( ( psz_eoa = strchr( psz_parser, '}') ) == NULL )
{
- msg_Err( p_filter, "Unable to parse effect list. Aborting");
+ msg_Err( p_filter, "unable to parse effect list. Aborting");
break;
}
p_effect->psz_args =
{
aout_filter_t *p_filter = (aout_filter_t *)p_this;
/* restart this baby */
- msg_Dbg( p_filter, "We should restart the visual filter" );
+ msg_Dbg( p_filter, "we should restart the visual filter" );
return VLC_SUCCESS;
}
*****************************************************************************/
#define POSITION_TEXT N_("Flip vertical position")
#define POSITION_LONGTEXT N_("Display xosd output on the bottom of the " \
- "screen instead of the top")
+ "screen instead of the top.")
#define TXT_OFS_TEXT N_("Vertical offset")
-#define TXT_OFS_LONGTEXT N_("Vertical offset in pixels of the displayed text")
+#define TXT_OFS_LONGTEXT N_("Vertical offset in pixels of the displayed " \
+ "text (default 30 px).")
#define SHD_OFS_TEXT N_("Shadow offset")
-#define SHD_OFS_LONGTEXT N_("Offset in pixels of the shadow")
+#define SHD_OFS_LONGTEXT N_("Offset in pixels of the shadow (default 2 px).")
#define FONT_TEXT N_("Font")
-#define FONT_LONGTEXT N_("Font used to display text in the xosd output")
-/* FIXME FIXME FIXME: Gettextize */
-#define COLOUR_TEXT ("Colour")
-#define COLOUR_LONGTEXT ("Colour used to display text in the xosd output")
+#define FONT_LONGTEXT N_("Font used to display text in the xosd output.")
+#define COLOUR_TEXT N_("Color")
+#define COLOUR_LONGTEXT N_("Color used to display text in the xosd output.")
vlc_module_begin();
set_category( CAT_INTERFACE );
set_subcategory( SUBCAT_INTERFACE_CONTROL );
set_description( _("XOSD interface") );
+ set_shortname( "XOSD" );
add_bool( "xosd-position", 1, NULL, POSITION_TEXT, POSITION_LONGTEXT, VLC_TRUE );
add_integer( "xosd-text-offset", 30, NULL, TXT_OFS_TEXT, TXT_OFS_LONGTEXT, VLC_TRUE );
add_integer( "xosd-shadow-offset", 2, NULL,