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
551d9d30
Commit
551d9d30
authored
Jul 22, 2015
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Jul 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subsdec: Remove space trimming code, the renderer already handles it
parent
ff6e9662
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
modules/codec/subsdec.c
modules/codec/subsdec.c
+0
-23
No files found.
modules/codec/subsdec.c
View file @
551d9d30
...
...
@@ -941,9 +941,6 @@ static text_segment_t* ParseSubtitles( int *pi_align, const char *psz_subtitle )
bool
b_has_align
=
false
;
while
(
*
psz_subtitle
==
' '
)
psz_subtitle
++
;
/* */
while
(
*
psz_subtitle
)
{
...
...
@@ -1168,28 +1165,8 @@ static text_segment_t* ParseSubtitles( int *pi_align, const char *psz_subtitle )
goto
fail
;
psz_subtitle
+=
2
;
}
else
if
(
*
psz_subtitle
==
' '
)
{
const
char
*
psz_current
=
psz_subtitle
;
// Check if we need to trim EOL spaces
while
(
*
psz_current
==
' '
)
psz_current
++
;
if
(
*
psz_current
==
'\n'
||
*
psz_current
==
0
)
psz_subtitle
=
psz_current
;
else
{
// Avoid continuing and iterating over spaces for each main loop iteration.
// Just get done with it here.
while
(
*
psz_subtitle
==
' '
)
{
AppendCharacter
(
p_segment
,
' '
);
psz_subtitle
++
;
}
}
}
else
{
//FIXME: Highly inneficient
AppendCharacter
(
p_segment
,
*
psz_subtitle
);
psz_subtitle
++
;
...
...
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