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
e5e27586
Commit
e5e27586
authored
Apr 03, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: remove the broken and incomplete sync stuff
parent
a759fe73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+5
-16
No files found.
modules/audio_output/pulse.c
View file @
e5e27586
...
@@ -167,6 +167,7 @@ static void Play(aout_instance_t *aout)
...
@@ -167,6 +167,7 @@ static void Play(aout_instance_t *aout)
msg_Dbg
(
aout
,
"uncorking"
);
msg_Dbg
(
aout
,
"uncorking"
);
}
}
#if 0
/* This function should be called by the LibVLC core a header of time,
/* This function should be called by the LibVLC core a header of time,
* but not more than AOUT_MAX_PREPARE. The PulseAudio latency should be
* but not more than AOUT_MAX_PREPARE. The PulseAudio latency should be
* shorter than that (though it might not be the case with some evil piece
* shorter than that (though it might not be the case with some evil piece
...
@@ -183,23 +184,11 @@ static void Play(aout_instance_t *aout)
...
@@ -183,23 +184,11 @@ static void Play(aout_instance_t *aout)
mtime_t gap = aout_FifoFirstDate(aout, &aout->output.fifo) - mdate()
mtime_t gap = aout_FifoFirstDate(aout, &aout->output.fifo) - mdate()
- latency;
- latency;
if
(
gap
>
AOUT_PTS_TOLERANCE
)
{
if (gap > AOUT_PTS_TOLERANCE)
#if 0 /* FIXME: we need to take buffer status into account as well... */
msg_Dbg(aout, "buffer too early (%"PRId64" us)", gap);
size_t len = sys->byterate * gap / CLOCK_FREQ;
else if (latency != 0 && gap < -AOUT_PTS_TOLERANCE)
void *ptr = calloc(1, len);
msg_Err(aout, "buffer too late (%"PRId64" us)", -gap);
msg_Dbg(aout, "buffer too early (%"PRId64" us), stuffing %zu bytes",
gap, len);
if (likely(ptr != NULL))
if (pa_stream_write(sys->stream, ptr, len, free,
0, PA_SEEK_RELATIVE) < 0)
free(ptr);
#endif
#endif
msleep
(
gap
);
}
/*else if (latency != 0 && gap < -AOUT_PTS_TOLERANCE)
msg_Err(aout, "buffer too late (%"PRId64" us)", -gap);*/
#if 0 /* Fault injector to test underrun recovery */
#if 0 /* Fault injector to test underrun recovery */
static unsigned u = 0;
static unsigned u = 0;
if ((++u % 500) == 0) {
if ((++u % 500) == 0) {
...
...
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