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
b0ab8891
Commit
b0ab8891
authored
Nov 07, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: cosmetic change
parent
1fc92d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/audio_output/input.c
src/audio_output/input.c
+8
-7
No files found.
src/audio_output/input.c
View file @
b0ab8891
...
...
@@ -38,7 +38,7 @@
#include "aout_internal.h"
static
void
inputDrop
(
aout_input_t
*
,
block_t
*
);
static
void
inputResamplingStop
(
audio_output_t
*
,
aout_input_t
*
);
static
void
inputResamplingStop
(
audio_output_t
*
,
aout_input_t
*
,
int
);
/*****************************************************************************
* aout_InputNew : allocate a new input and rework the filter pipeline
...
...
@@ -112,7 +112,7 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
aout_OutputFlush
(
p_aout
,
false
);
if
(
p_input
->
i_resampling_type
!=
AOUT_RESAMPLING_NONE
)
msg_Warn
(
p_aout
,
"timing screwed, stopping resampling"
);
inputResamplingStop
(
p_aout
,
p_input
);
inputResamplingStop
(
p_aout
,
p_input
,
i_input_rate
);
p_buffer
->
i_flags
|=
BLOCK_FLAG_DISCONTINUITY
;
start_date
=
VLC_TS_INVALID
;
}
...
...
@@ -124,7 +124,7 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
msg_Warn
(
p_aout
,
"PTS is out of range (%"
PRId64
"), dropping buffer"
,
now
-
p_buffer
->
i_pts
);
inputDrop
(
p_input
,
p_buffer
);
inputResamplingStop
(
p_aout
,
p_input
);
inputResamplingStop
(
p_aout
,
p_input
,
i_input_rate
);
return
NULL
;
}
...
...
@@ -145,7 +145,7 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
aout_OutputFlush
(
p_aout
,
false
);
if
(
p_input
->
i_resampling_type
!=
AOUT_RESAMPLING_NONE
)
msg_Warn
(
p_aout
,
"timing screwed, stopping resampling"
);
inputResamplingStop
(
p_aout
,
p_input
);
inputResamplingStop
(
p_aout
,
p_input
,
i_input_rate
);
p_buffer
->
i_flags
|=
BLOCK_FLAG_DISCONTINUITY
;
start_date
=
p_buffer
->
i_pts
;
date_Set
(
date
,
start_date
);
...
...
@@ -228,7 +228,7 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
/* If the drift is increasing and not decreasing, than something
* is bad. We'd better stop the resampling right now. */
msg_Warn
(
p_aout
,
"timing screwed, stopping resampling"
);
inputResamplingStop
(
p_aout
,
p_input
);
inputResamplingStop
(
p_aout
,
p_input
,
i_input_rate
);
p_buffer
->
i_flags
|=
BLOCK_FLAG_DISCONTINUITY
;
}
}
...
...
@@ -260,7 +260,8 @@ static void inputDrop( aout_input_t *p_input, block_t *p_buffer )
p_input
->
i_buffer_lost
++
;
}
static
void
inputResamplingStop
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
)
static
void
inputResamplingStop
(
audio_output_t
*
p_aout
,
aout_input_t
*
p_input
,
int
input_rate
)
{
aout_owner_t
*
owner
=
aout_owner
(
p_aout
);
...
...
@@ -269,7 +270,7 @@ static void inputResamplingStop( audio_output_t *p_aout, aout_input_t *p_input )
{
owner
->
resampler
->
fmt_in
.
audio
.
i_rate
=
(
owner
->
resampler
==
owner
->
rate_filter
)
?
INPUT_RATE_DEFAULT
*
p_input
->
samplerate
/
p_input
->
i_last_
input_rate
?
INPUT_RATE_DEFAULT
*
p_input
->
samplerate
/
input_rate
:
p_input
->
samplerate
;
}
}
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