Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
01d9caa1
Commit
01d9caa1
authored
Jul 16, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: buffer metrics are buffer metrics not overall metrics
This should fix buffer underflows in most cases.
parent
323e8f14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+2
-4
No files found.
modules/audio_output/pulse.c
View file @
01d9caa1
...
...
@@ -505,15 +505,13 @@ static int Open(vlc_object_t *obj)
/* Stream parameters */
const
pa_stream_flags_t
flags
=
PA_STREAM_INTERPOLATE_TIMING
|
PA_STREAM_AUTO_TIMING_UPDATE
|
PA_STREAM_ADJUST_LATENCY
|
PA_STREAM_START_CORKED
;
const
uint32_t
byterate
=
pa_bytes_per_second
(
&
ss
);
struct
pa_buffer_attr
attr
;
/* no point in larger buffers on PA side than VLC */
attr
.
maxlength
=
-
1
;
attr
.
tlength
=
byterate
*
AOUT_MAX_
ADVANC
E_TIME
/
CLOCK_FREQ
;
attr
.
prebuf
=
byterate
*
AOUT_MAX_PREPARE_TIME
/
CLOCK_FREQ
;
attr
.
tlength
=
byterate
*
AOUT_MAX_
PREPAR
E_TIME
/
CLOCK_FREQ
;
attr
.
prebuf
=
-
1
;
attr
.
minreq
=
-
1
;
attr
.
fragsize
=
0
;
/* not used for output */
...
...
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