Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b83a2c56
Commit
b83a2c56
authored
Aug 22, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subsusf: move subsdec-formatted option to correct plugin
(Maybe the option should be renamed also)
parent
01b8197c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
modules/codec/subsdec.c
modules/codec/subsdec.c
+1
-8
modules/codec/subsusf.c
modules/codec/subsusf.c
+6
-1
No files found.
modules/codec/subsdec.c
View file @
b83a2c56
...
@@ -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
;
}
}
...
...
modules/codec/subsusf.c
View file @
b83a2c56
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment