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
5708e0cd
Commit
5708e0cd
authored
Nov 25, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed seeking while paused (visible with high caching).
parent
db4b1b44
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/input/clock.c
src/input/clock.c
+0
-3
src/input/es_out.c
src/input/es_out.c
+7
-4
No files found.
src/input/clock.c
View file @
5708e0cd
...
@@ -395,9 +395,6 @@ void input_clock_ChangeSystemOrigin( input_clock_t *cl, mtime_t i_system )
...
@@ -395,9 +395,6 @@ void input_clock_ChangeSystemOrigin( input_clock_t *cl, mtime_t i_system )
cl
->
ref
.
i_system
+=
i_offset
;
cl
->
ref
.
i_system
+=
i_offset
;
cl
->
last
.
i_system
+=
i_offset
;
cl
->
last
.
i_system
+=
i_offset
;
if
(
cl
->
b_paused
)
cl
->
i_pause_date
=
i_system
;
vlc_mutex_unlock
(
&
cl
->
lock
);
vlc_mutex_unlock
(
&
cl
->
lock
);
}
}
...
...
src/input/es_out.c
View file @
5708e0cd
...
@@ -147,6 +147,7 @@ struct es_out_sys_t
...
@@ -147,6 +147,7 @@ struct es_out_sys_t
/* */
/* */
bool
b_paused
;
bool
b_paused
;
mtime_t
i_pause_date
;
/* Current preroll */
/* Current preroll */
mtime_t
i_preroll_end
;
mtime_t
i_preroll_end
;
...
@@ -301,6 +302,7 @@ es_out_t *input_EsOutNew( input_thread_t *p_input, int i_rate )
...
@@ -301,6 +302,7 @@ es_out_t *input_EsOutNew( input_thread_t *p_input, int i_rate )
p_sys
->
i_spu_delay
=
0
;
p_sys
->
i_spu_delay
=
0
;
p_sys
->
b_paused
=
false
;
p_sys
->
b_paused
=
false
;
p_sys
->
i_pause_date
=
-
1
;
p_sys
->
i_rate
=
i_rate
;
p_sys
->
i_rate
=
i_rate
;
...
@@ -556,6 +558,7 @@ static void EsOutChangePause( es_out_t *out, bool b_paused, mtime_t i_date )
...
@@ -556,6 +558,7 @@ static void EsOutChangePause( es_out_t *out, bool b_paused, mtime_t i_date )
EsOutProgramsChangeRate
(
out
);
EsOutProgramsChangeRate
(
out
);
}
}
p_sys
->
b_paused
=
b_paused
;
p_sys
->
b_paused
=
b_paused
;
p_sys
->
i_pause_date
=
i_date
;
}
}
static
void
EsOutChangeRate
(
es_out_t
*
out
,
int
i_rate
)
static
void
EsOutChangeRate
(
es_out_t
*
out
,
int
i_rate
)
...
@@ -654,10 +657,10 @@ static void EsOutDecodersStopBuffering( es_out_t *out, bool b_forced )
...
@@ -654,10 +657,10 @@ static void EsOutDecodersStopBuffering( es_out_t *out, bool b_forced )
msg_Dbg
(
p_sys
->
p_input
,
"Decoder buffering done in %d ms"
,
msg_Dbg
(
p_sys
->
p_input
,
"Decoder buffering done in %d ms"
,
(
int
)(
mdate
()
-
i_decoder_buffering_start
)
/
1000
);
(
int
)(
mdate
()
-
i_decoder_buffering_start
)
/
1000
);
const
mtime_t
i_
ts_delay
=
10
*
1000
+
/* FIXME CLEANUP thread wake up time*/
const
mtime_t
i_
wakeup_delay
=
10
*
1000
;
/* FIXME CLEANUP thread wake up time*/
mdate
();
const
mtime_t
i_current_date
=
p_sys
->
b_paused
?
p_sys
->
i_pause_date
:
mdate
();
//msg_Dbg( p_sys->p_input, "==> %lld", i_ts_delay - p_sys->p_input->i_pts_delay );
input_clock_ChangeSystemOrigin
(
p_sys
->
p_pgrm
->
p_clock
,
i_
ts
_delay
-
i_buffering_duration
);
input_clock_ChangeSystemOrigin
(
p_sys
->
p_pgrm
->
p_clock
,
i_
current_date
+
i_wakeup
_delay
-
i_buffering_duration
);
for
(
int
i
=
0
;
i
<
p_sys
->
i_es
;
i
++
)
for
(
int
i
=
0
;
i
<
p_sys
->
i_es
;
i
++
)
{
{
...
...
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