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
2c15f6cf
Commit
2c15f6cf
authored
Jan 28, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: bug^Whint user about latency bug
parent
40330fdd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+21
-0
No files found.
modules/audio_output/pulse.c
View file @
2c15f6cf
...
@@ -36,6 +36,9 @@
...
@@ -36,6 +36,9 @@
#if !PA_CHECK_VERSION(0,9,22)
#if !PA_CHECK_VERSION(0,9,22)
# include <vlc_xlib.h>
# include <vlc_xlib.h>
#endif
#endif
#if !PA_CHECK_VERSION(3,0,0)
# include <vlc_dialog.h>
#endif
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
@@ -315,7 +318,25 @@ static void stream_latency_cb(pa_stream *s, void *userdata)
...
@@ -315,7 +318,25 @@ static void stream_latency_cb(pa_stream *s, void *userdata)
bool
sync
=
false
;
bool
sync
=
false
;
if
(
delta
<
-
AOUT_MAX_PTS_DELAY
)
if
(
delta
<
-
AOUT_MAX_PTS_DELAY
)
{
msg_Warn
(
aout
,
"too late by %"
PRId64
" us"
,
-
delta
);
msg_Warn
(
aout
,
"too late by %"
PRId64
" us"
,
-
delta
);
#if !PA_CHECK_VERSION(3,0,0)
if
(
delta
<
-
CLOCK_FREQ
)
{
var_Create
(
aout
->
p_libvlc
,
"pulse-broken"
,
VLC_VAR_BOOL
);
if
(
!
var_GetBool
(
aout
->
p_libvlc
,
"pulse-broken"
))
{
var_SetBool
(
aout
->
p_libvlc
,
"pulse-broken"
,
true
);
dialog_Fatal
(
aout
,
"Potential PulseAudio version problem"
,
"PulseAudio is streaming with an excessive latency. "
"Sound may be lost or quality degraded.
\n
"
"To address that issue, upgrade the PulseAudio daemon "
"to version 3.0, or disable the alternate sampling rate "
"in its configuration."
);
}
}
#endif
}
else
if
(
delta
>
+
AOUT_MAX_PTS_ADVANCE
)
else
if
(
delta
>
+
AOUT_MAX_PTS_ADVANCE
)
msg_Warn
(
aout
,
"too early by %"
PRId64
" us"
,
delta
);
msg_Warn
(
aout
,
"too early by %"
PRId64
" us"
,
delta
);
else
if
(
outrate
==
inrate
)
else
if
(
outrate
==
inrate
)
...
...
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