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
fe805f7b
Commit
fe805f7b
authored
Aug 01, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: remove input.b_paused (use VLC_TS_INVALID pause date)
parent
c81a6fdd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+0
-1
src/audio_output/dec.c
src/audio_output/dec.c
+10
-11
src/audio_output/input.c
src/audio_output/input.c
+0
-2
No files found.
src/audio_output/aout_internal.h
View file @
fe805f7b
...
@@ -85,7 +85,6 @@ struct aout_input_t
...
@@ -85,7 +85,6 @@ struct aout_input_t
int
i_buffer_lost
;
int
i_buffer_lost
;
/* */
/* */
bool
b_paused
;
mtime_t
i_pause_date
;
mtime_t
i_pause_date
;
/* */
/* */
...
...
src/audio_output/dec.c
View file @
fe805f7b
...
@@ -82,8 +82,7 @@ aout_input_t *aout_DecNew( audio_output_t *p_aout,
...
@@ -82,8 +82,7 @@ aout_input_t *aout_DecNew( audio_output_t *p_aout,
return
NULL
;
return
NULL
;
p_input
->
b_error
=
true
;
p_input
->
b_error
=
true
;
p_input
->
b_paused
=
false
;
p_input
->
i_pause_date
=
VLC_TS_INVALID
;
p_input
->
i_pause_date
=
0
;
aout_FormatPrepare
(
p_format
);
aout_FormatPrepare
(
p_format
);
...
@@ -223,23 +222,23 @@ int aout_DecGetResetLost( audio_output_t *p_aout, aout_input_t *p_input )
...
@@ -223,23 +222,23 @@ int aout_DecGetResetLost( audio_output_t *p_aout, aout_input_t *p_input )
void
aout_DecChangePause
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
,
bool
b_paused
,
mtime_t
i_date
)
void
aout_DecChangePause
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
,
bool
b_paused
,
mtime_t
i_date
)
{
{
mtime_t
i_duration
=
0
;
aout_lock
(
p_aout
);
aout_lock
(
p_aout
);
assert
(
p_aout
->
p_input
==
p_input
);
assert
(
p_aout
->
p_input
==
p_input
);
assert
(
!
p_input
->
b_paused
||
!
b_paused
);
if
(
p_input
->
b_paused
)
if
(
b_paused
)
{
{
i_duration
=
i_date
-
p_input
->
i_pause_date
;
}
p_input
->
b_paused
=
b_paused
;
p_input
->
i_pause_date
=
i_date
;
p_input
->
i_pause_date
=
i_date
;
}
if
(
i_duration
!=
0
)
else
{
{
assert
(
p_input
->
i_pause_date
!=
VLC_TS_INVALID
);
mtime_t
i_duration
=
i_date
-
p_input
->
i_pause_date
;
p_input
->
i_pause_date
=
VLC_TS_INVALID
;
aout_FifoMoveDates
(
&
p_input
->
fifo
,
i_duration
);
aout_FifoMoveDates
(
&
p_input
->
fifo
,
i_duration
);
aout_FifoMoveDates
(
&
p_aout
->
fifo
,
i_duration
);
aout_FifoMoveDates
(
&
p_aout
->
fifo
,
i_duration
);
}
}
aout_OutputPause
(
p_aout
,
b_paused
,
i_date
);
aout_OutputPause
(
p_aout
,
b_paused
,
i_date
);
aout_unlock
(
p_aout
);
aout_unlock
(
p_aout
);
}
}
...
...
src/audio_output/input.c
View file @
fe805f7b
...
@@ -466,7 +466,6 @@ void aout_InputCheckAndRestart( audio_output_t * p_aout, aout_input_t * p_input
...
@@ -466,7 +466,6 @@ void aout_InputCheckAndRestart( audio_output_t * p_aout, aout_input_t * p_input
/* A little trick to avoid loosing our input fifo and properties */
/* A little trick to avoid loosing our input fifo and properties */
aout_fifo_t
fifo
=
p_input
->
fifo
;
aout_fifo_t
fifo
=
p_input
->
fifo
;
bool
b_paused
=
p_input
->
b_paused
;
mtime_t
i_pause_date
=
p_input
->
i_pause_date
;
mtime_t
i_pause_date
=
p_input
->
i_pause_date
;
aout_FifoInit
(
p_aout
,
&
p_input
->
fifo
,
p_aout
->
mixer_format
.
i_rate
);
aout_FifoInit
(
p_aout
,
&
p_input
->
fifo
,
p_aout
->
mixer_format
.
i_rate
);
...
@@ -475,7 +474,6 @@ void aout_InputCheckAndRestart( audio_output_t * p_aout, aout_input_t * p_input
...
@@ -475,7 +474,6 @@ void aout_InputCheckAndRestart( audio_output_t * p_aout, aout_input_t * p_input
aout_InputNew
(
p_aout
,
p_input
,
&
p_input
->
request_vout
);
aout_InputNew
(
p_aout
,
p_input
,
&
p_input
->
request_vout
);
p_input
->
fifo
=
fifo
;
p_input
->
fifo
=
fifo
;
p_input
->
b_paused
=
b_paused
;
p_input
->
i_pause_date
=
i_pause_date
;
p_input
->
i_pause_date
=
i_pause_date
;
p_input
->
b_restart
=
false
;
p_input
->
b_restart
=
false
;
...
...
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