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
19a97d79
Commit
19a97d79
authored
Nov 28, 2009
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jack: correct requested buffer date
+ remove a dead line & kill a warning
parent
bf835339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/audio_output/jack.c
modules/audio_output/jack.c
+8
-4
No files found.
modules/audio_output/jack.c
View file @
19a97d79
...
...
@@ -249,10 +249,14 @@ int Process( jack_nframes_t i_frames, void *p_arg )
struct
aout_sys_t
*
p_sys
=
p_aout
->
output
.
p_sys
;
jack_sample_t
*
p_src
=
NULL
;
/* we assume that data we send to jack now will be played one buffer size samples
after the start of this jack cycle */
jack_nframes_t
dframes
=
i_frames
-
jack_frames_since_cycle_start
(
p_sys
->
p_jack_client
);
jack_time_t
dtime
=
dframes
*
1000
*
1000
/
jack_get_sample_rate
(
p_sys
->
p_jack_client
);
mtime_t
play_date
=
mdate
()
+
(
mtime_t
)
(
dtime
);
/* Get the next audio data buffer */
vlc_mutex_lock
(
&
p_aout
->
output_fifo_lock
);
aout_buffer_t
*
p_buffer
=
aout_FifoPop
(
p_aout
,
&
p_aout
->
output
.
fifo
);
vlc_mutex_unlock
(
&
p_aout
->
output_fifo_lock
);
aout_buffer_t
*
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
play_date
,
false
);
if
(
p_buffer
!=
NULL
)
{
...
...
@@ -301,7 +305,7 @@ int Process( jack_nframes_t i_frames, void *p_arg )
*****************************************************************************/
static
void
Play
(
aout_instance_t
*
p_aout
)
{
aout_FifoFirstDate
(
p_aout
,
&
p_aout
->
output
.
fifo
);
VLC_UNUSED
(
p_aout
);
}
/*****************************************************************************
...
...
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