Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
179c1855
Commit
179c1855
authored
Jul 15, 2007
by
Bernie Purcell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recognise subsdec-formatted variable when rendering USF and SRT subtitles, and
turn off styling of text if appropriate.
parent
fc12cd71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
modules/codec/subsdec.c
modules/codec/subsdec.c
+20
-1
No files found.
modules/codec/subsdec.c
View file @
179c1855
...
...
@@ -503,7 +503,10 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
/* Remove formatting from string */
p_spu
->
p_region
->
psz_text
=
StripTags
(
psz_subtitle
);
p_spu
->
p_region
->
psz_html
=
CreateHtmlSubtitle
(
psz_subtitle
);
if
(
var_CreateGetBool
(
p_dec
,
"subsdec-formatted"
)
)
{
p_spu
->
p_region
->
psz_html
=
CreateHtmlSubtitle
(
psz_subtitle
);
}
p_spu
->
i_start
=
p_block
->
i_pts
;
p_spu
->
i_stop
=
p_block
->
i_pts
+
p_block
->
i_length
;
...
...
@@ -777,8 +780,16 @@ static subpicture_region_t *ParseUSFString( decoder_t *p_dec, char *psz_subtitle
p_sys
->
i_align
);
if
(
p_text_region
)
{
p_text_region
->
psz_text
=
CreatePlainText
(
p_text_region
->
psz_html
);
if
(
!
var_CreateGetBool
(
p_dec
,
"subsdec-formatted"
)
)
{
free
(
p_text_region
->
psz_html
);
p_text_region
->
psz_html
=
NULL
;
}
}
if
(
!
p_region_first
)
{
p_region_first
=
p_region_upto
=
p_text_region
;
...
...
@@ -807,6 +818,14 @@ static subpicture_region_t *ParseUSFString( decoder_t *p_dec, char *psz_subtitle
psz_end
-
psz_subtitle
,
p_sys
->
i_align
);
if
(
p_text_region
)
{
if
(
!
var_CreateGetBool
(
p_dec
,
"subsdec-formatted"
)
)
{
free
(
p_text_region
->
psz_html
);
p_text_region
->
psz_html
=
NULL
;
}
}
if
(
!
p_region_first
)
{
p_region_first
=
p_region_upto
=
p_text_region
;
...
...
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