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

subsusf: move subsdec-formatted option to correct plugin

(Maybe the option should be renamed also)
parent 01b8197c
...@@ -348,9 +348,6 @@ static const char *const ppsz_justification_text[] = { ...@@ -348,9 +348,6 @@ static const char *const ppsz_justification_text[] = {
#define AUTODETECT_UTF8_TEXT N_("UTF-8 subtitle autodetection") #define AUTODETECT_UTF8_TEXT N_("UTF-8 subtitle autodetection")
#define AUTODETECT_UTF8_LONGTEXT N_("This enables automatic detection of " \ #define AUTODETECT_UTF8_LONGTEXT N_("This enables automatic detection of " \
"UTF-8 encoding within subtitle files.") "UTF-8 encoding within subtitle files.")
#define FORMAT_TEXT N_("Formatted Subtitles")
#define FORMAT_LONGTEXT N_("Some subtitle formats allow for text formatting. " \
"VLC partly implements this, but you can choose to disable all formatting.")
static int OpenDecoder ( vlc_object_t * ); static int OpenDecoder ( vlc_object_t * );
static void CloseDecoder ( vlc_object_t * ); static void CloseDecoder ( vlc_object_t * );
...@@ -371,8 +368,6 @@ vlc_module_begin () ...@@ -371,8 +368,6 @@ vlc_module_begin ()
change_string_list( ppsz_encodings, ppsz_encoding_names ) change_string_list( ppsz_encodings, ppsz_encoding_names )
add_bool( "subsdec-autodetect-utf8", true, add_bool( "subsdec-autodetect-utf8", true,
AUTODETECT_UTF8_TEXT, AUTODETECT_UTF8_LONGTEXT, false ) AUTODETECT_UTF8_TEXT, AUTODETECT_UTF8_LONGTEXT, false )
add_bool( "subsdec-formatted", true, FORMAT_TEXT, FORMAT_LONGTEXT,
false )
vlc_module_end () vlc_module_end ()
/***************************************************************************** /*****************************************************************************
...@@ -638,10 +633,8 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block ) ...@@ -638,10 +633,8 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
p_spu_sys->align = SUBPICTURE_ALIGN_BOTTOM | p_sys->i_align; p_spu_sys->align = SUBPICTURE_ALIGN_BOTTOM | p_sys->i_align;
p_spu_sys->p_segments = ParseSubtitles( &p_spu_sys->align, psz_subtitle ); p_spu_sys->p_segments = ParseSubtitles( &p_spu_sys->align, psz_subtitle );
free( psz_subtitle );
//FIXME: Remove the variable? free( psz_subtitle );
//if( var_InheritBool( p_dec, "subsdec-formatted" ) )
return p_spu; return p_spu;
} }
......
...@@ -41,6 +41,10 @@ ...@@ -41,6 +41,10 @@
static int OpenDecoder ( vlc_object_t * ); static int OpenDecoder ( vlc_object_t * );
static void CloseDecoder ( vlc_object_t * ); static void CloseDecoder ( vlc_object_t * );
#define FORMAT_TEXT N_("Formatted Subtitles")
#define FORMAT_LONGTEXT N_("Some subtitle formats allow for text formatting. " \
"VLC partly implements this, but you can choose to disable all formatting.")
vlc_module_begin () vlc_module_begin ()
set_capability( "decoder", 40 ) set_capability( "decoder", 40 )
set_shortname( N_("USFSubs")) set_shortname( N_("USFSubs"))
...@@ -48,7 +52,8 @@ vlc_module_begin () ...@@ -48,7 +52,8 @@ vlc_module_begin ()
set_callbacks( OpenDecoder, CloseDecoder ) set_callbacks( OpenDecoder, CloseDecoder )
set_category( CAT_INPUT ) set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_SCODEC ) set_subcategory( SUBCAT_INPUT_SCODEC )
/* We inherit subsdec-align and subsdec-formatted from subsdec.c */ add_bool( "subsdec-formatted", true, FORMAT_TEXT, FORMAT_LONGTEXT,
false )
vlc_module_end () vlc_module_end ()
......
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