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
ac8f9982
Commit
ac8f9982
authored
Oct 12, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TTML: remove trailing space
parent
0ed098b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/demux/ttml.c
modules/demux/ttml.c
+7
-7
No files found.
modules/demux/ttml.c
View file @
ac8f9982
...
@@ -204,7 +204,7 @@ static int ReadTTML( demux_t* p_demux )
...
@@ -204,7 +204,7 @@ static int ReadTTML( demux_t* p_demux )
const
char
*
psz_name
;
const
char
*
psz_name
;
int
i_max_sub
=
0
;
int
i_max_sub
=
0
;
int
i_type
;
int
i_type
;
do
do
{
{
i_type
=
xml_ReaderNextNode
(
p_sys
->
p_reader
,
&
psz_name
);
i_type
=
xml_ReaderNextNode
(
p_sys
->
p_reader
,
&
psz_name
);
...
@@ -215,12 +215,12 @@ static int ReadTTML( demux_t* p_demux )
...
@@ -215,12 +215,12 @@ static int ReadTTML( demux_t* p_demux )
{
{
p_sys
->
b_has_head
=
true
;
p_sys
->
b_has_head
=
true
;
}
}
else
if
(
i_type
==
XML_READER_STARTELEM
&&
(
!
strcasecmp
(
psz_name
,
"p"
)
||
!
strcasecmp
(
psz_name
,
"tt:p"
)
)
)
else
if
(
i_type
==
XML_READER_STARTELEM
&&
(
!
strcasecmp
(
psz_name
,
"p"
)
||
!
strcasecmp
(
psz_name
,
"tt:p"
)
)
)
{
{
char
*
psz_text
=
NULL
;
char
*
psz_text
=
NULL
;
char
*
psz_begin
=
NULL
;
char
*
psz_begin
=
NULL
;
char
*
psz_end
=
NULL
;
char
*
psz_end
=
NULL
;
if
(
asprintf
(
&
psz_text
,
"<%s"
,
psz_name
)
<
0
)
if
(
asprintf
(
&
psz_text
,
"<%s"
,
psz_name
)
<
0
)
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
const
char
*
psz_attr_value
=
NULL
;
const
char
*
psz_attr_value
=
NULL
;
...
@@ -264,7 +264,7 @@ static int ReadTTML( demux_t* p_demux )
...
@@ -264,7 +264,7 @@ static int ReadTTML( demux_t* p_demux )
}
}
}
}
subtitle_t
*
p_subtitle
=
&
p_sys
->
subtitle
[
p_sys
->
i_subtitles
];
subtitle_t
*
p_subtitle
=
&
p_sys
->
subtitle
[
p_sys
->
i_subtitles
];
Convert_time
(
&
p_subtitle
->
i_start
,
psz_begin
);
Convert_time
(
&
p_subtitle
->
i_start
,
psz_begin
);
Convert_time
(
&
p_subtitle
->
i_stop
,
psz_end
);
Convert_time
(
&
p_subtitle
->
i_stop
,
psz_end
);
free
(
psz_begin
);
free
(
psz_begin
);
...
@@ -289,7 +289,7 @@ static int ReadTTML( demux_t* p_demux )
...
@@ -289,7 +289,7 @@ static int ReadTTML( demux_t* p_demux )
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
psz_attr_name
=
xml_ReaderNextAttr
(
p_sys
->
p_reader
,
&
psz_attr_value
);
psz_attr_name
=
xml_ReaderNextAttr
(
p_sys
->
p_reader
,
&
psz_attr_value
);
while
(
psz_attr_name
&&
psz_attr_value
)
while
(
psz_attr_name
&&
psz_attr_value
)
{
{
psz_text
=
Append
(
psz_text
,
" %s=
\"
%s
\"
"
,
psz_attr_name
,
psz_attr_value
);
psz_text
=
Append
(
psz_text
,
" %s=
\"
%s
\"
"
,
psz_attr_name
,
psz_attr_value
);
if
(
unlikely
(
psz_text
==
NULL
)
)
if
(
unlikely
(
psz_text
==
NULL
)
)
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
...
@@ -301,7 +301,7 @@ static int ReadTTML( demux_t* p_demux )
...
@@ -301,7 +301,7 @@ static int ReadTTML( demux_t* p_demux )
if
(
unlikely
(
psz_text
==
NULL
)
)
if
(
unlikely
(
psz_text
==
NULL
)
)
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
else
else
{
{
psz_text
=
Append
(
psz_text
,
">"
);
psz_text
=
Append
(
psz_text
,
">"
);
if
(
unlikely
(
psz_text
==
NULL
)
)
if
(
unlikely
(
psz_text
==
NULL
)
)
...
@@ -338,7 +338,7 @@ static int Demux( demux_t* p_demux )
...
@@ -338,7 +338,7 @@ static int Demux( demux_t* p_demux )
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
if
(
p_sys
->
i_subtitle
>=
p_sys
->
i_subtitles
)
if
(
p_sys
->
i_subtitle
>=
p_sys
->
i_subtitles
)
return
0
;
return
0
;
while
(
p_sys
->
i_subtitle
<
p_sys
->
i_subtitles
&&
while
(
p_sys
->
i_subtitle
<
p_sys
->
i_subtitles
&&
p_sys
->
subtitle
[
p_sys
->
i_subtitle
].
i_start
<
p_sys
->
i_next_demux_time
)
p_sys
->
subtitle
[
p_sys
->
i_subtitle
].
i_start
<
p_sys
->
i_next_demux_time
)
{
{
...
...
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