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
32f5d458
Commit
32f5d458
authored
Oct 19, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print an errorr if a resampler skipped input frames
parent
65559b35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
modules/audio_filter/resampler/speex.c
modules/audio_filter/resampler/speex.c
+4
-0
modules/audio_filter/resampler/src.c
modules/audio_filter/resampler/src.c
+2
-2
No files found.
modules/audio_filter/resampler/speex.c
View file @
32f5d458
...
...
@@ -135,6 +135,10 @@ static block_t *Resample (filter_t *filter, block_t *in)
goto
error
;
}
if
(
ilen
<
in
->
i_nb_samples
)
msg_Err
(
filter
,
"lost %"
PRIu32
" of %u input frames"
,
in
->
i_nb_samples
-
ilen
,
in
->
i_nb_samples
);
out
->
i_buffer
=
olen
*
framesize
;
out
->
i_nb_samples
=
olen
;
out
->
i_pts
=
in
->
i_pts
;
...
...
modules/audio_filter/resampler/src.c
View file @
32f5d458
...
...
@@ -139,8 +139,8 @@ static block_t *Resample (filter_t *filter, block_t *in)
}
if
(
src
.
input_frames_used
<
src
.
input_frames
)
msg_
Warn
(
filter
,
"lost %ld of %ld input frames"
,
src
.
input_frames
-
src
.
input_frames_used
,
src
.
input_frames
);
msg_
Err
(
filter
,
"lost %ld of %ld input frames"
,
src
.
input_frames
-
src
.
input_frames_used
,
src
.
input_frames
);
out
->
i_buffer
=
src
.
output_frames_gen
*
framesize
;
out
->
i_nb_samples
=
src
.
output_frames_gen
;
...
...
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