Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
36af0dc7
Commit
36af0dc7
authored
Mar 30, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not delay subtitles twice + Sanity check
parent
05654db3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/demux/util/sub.c
modules/demux/util/sub.c
+9
-4
No files found.
modules/demux/util/sub.c
View file @
36af0dc7
...
...
@@ -552,6 +552,12 @@ static int sub_demux( subtitle_demux_t *p_sub, mtime_t i_maxdate )
p_sub
->
subtitle
[
p_sub
->
i_subtitle
].
i_stop
+=
i_delay
;
}
if
(
p_sub
->
subtitle
[
p_sub
->
i_subtitle
].
i_start
<
0
)
{
p_sub
->
i_subtitle
++
;
continue
;
}
p_block
->
i_pts
=
input_ClockGetTS
(
p_sub
->
p_input
,
p_sub
->
p_input
->
stream
.
p_selected_program
,
...
...
@@ -676,11 +682,8 @@ static void sub_close( subtitle_demux_t *p_sub )
*****************************************************************************/
static
void
sub_fix
(
subtitle_demux_t
*
p_sub
)
{
int
i
;
mtime_t
i_delay
;
int
i_index
;
int
i_done
;
vlc_value_t
val
;
/* *** fix order (to be sure...) *** */
/* We suppose that there are near in order and this durty bubble sort
...
...
@@ -708,7 +711,8 @@ static void sub_fix( subtitle_demux_t *p_sub )
}
}
}
while
(
!
i_done
);
#if 0
/* We do not do this here anymore */
/* *** and at the end add delay *** */
var_Get( p_sub, "sub-delay", &val );
i_delay = (mtime_t) val.i_int * 100000;
...
...
@@ -724,6 +728,7 @@ static void sub_fix( subtitle_demux_t *p_sub )
}
}
}
#endif
}
...
...
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