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
534a8122
Commit
534a8122
authored
Feb 06, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix subtitle delay < 0
DAAP compile fix
parent
be52d3fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
modules/demux/subtitle.c
modules/demux/subtitle.c
+1
-1
modules/services_discovery/daap.c
modules/services_discovery/daap.c
+1
-1
src/input/var.c
src/input/var.c
+7
-5
No files found.
modules/demux/subtitle.c
View file @
534a8122
...
...
@@ -508,7 +508,7 @@ static int Demux( demux_t *p_demux )
if
(
p_sys
->
i_subtitle
>=
p_sys
->
i_subtitles
)
return
0
;
i_maxdate
=
p_sys
->
i_next_demux_date
;
i_maxdate
=
p_sys
->
i_next_demux_date
-
var_GetTime
(
p_demux
->
p_parent
,
"spu-delay"
);
;
if
(
i_maxdate
<=
0
&&
p_sys
->
i_subtitle
<
p_sys
->
i_subtitles
)
{
/* Should not happen */
...
...
modules/services_discovery/daap.c
View file @
534a8122
...
...
@@ -632,7 +632,7 @@ static void FreeHost( services_discovery_t *p_sd, dhost_t *p_host )
FIND_ANYWHERE
);
if
(
p_playlist
)
{
playlist_NodeDelete
(
p_playlist
,
p_host
->
p_node
,
VLC_TRUE
);
playlist_NodeDelete
(
p_playlist
,
p_host
->
p_node
,
VLC_TRUE
,
VLC_TRUE
);
vlc_object_release
(
p_playlist
);
}
...
...
src/input/var.c
View file @
534a8122
...
...
@@ -694,14 +694,16 @@ static int EsDelayCallback ( vlc_object_t *p_this, char const *psz_cmd,
{
input_thread_t
*
p_input
=
(
input_thread_t
*
)
p_this
;
/*Change i_pts_delay to make sure es are decoded in time*/
if
(
newval
.
i_int
<
0
||
oldval
.
i_int
<
0
)
{
p_input
->
i_pts_delay
-=
newval
.
i_int
-
oldval
.
i_int
;
}
if
(
!
strcmp
(
psz_cmd
,
"audio-delay"
)
)
{
/*Change i_pts_delay to make sure es are decoded in time*/
if
(
newval
.
i_int
<
0
||
oldval
.
i_int
<
0
)
{
p_input
->
i_pts_delay
-=
newval
.
i_int
-
oldval
.
i_int
;
}
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_AUDIO_DELAY
,
&
newval
);
}
else
if
(
!
strcmp
(
psz_cmd
,
"spu-delay"
)
)
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_SPU_DELAY
,
&
newval
);
return
VLC_SUCCESS
;
...
...
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