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
37a1cbee
Commit
37a1cbee
authored
Feb 02, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sndio: do not prepend zeroes
This is not a good idea if the stream is playing.
parent
6eae0006
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
modules/audio_output/sndio.c
modules/audio_output/sndio.c
+1
-14
No files found.
modules/audio_output/sndio.c
View file @
37a1cbee
...
...
@@ -167,20 +167,7 @@ static void Play (audio_output_t *aout, block_t *block)
mtime_t
delay
=
par
.
bufsz
*
CLOCK_FREQ
/
aout
->
format
.
i_rate
;
delay
=
block
->
i_pts
-
(
mdate
()
-
delay
);
if
(
delay
>
0
)
{
size_t
frames
=
(
delay
*
aout
->
format
.
i_rate
)
/
CLOCK_FREQ
;
msg_Dbg
(
aout
,
"prepending %zu zeroes"
,
frames
);
void
*
pad
=
calloc
(
frames
,
aout
->
format
.
i_bytes_per_frame
);
if
(
likely
(
pad
!=
NULL
))
{
sio_write
(
sio
,
pad
,
frames
*
aout
->
format
.
i_bytes_per_frame
);
free
(
pad
);
}
}
else
aout_TimeReport
(
aout
,
block
->
i_pts
-
delay
);
aout_TimeReport
(
aout
,
block
->
i_pts
-
delay
);
}
while
(
block
->
i_buffer
>
0
&&
!
sio_eof
(
sio
))
...
...
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