Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
215a2d76
Commit
215a2d76
authored
Apr 20, 2016
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: force setting alsa buffer size
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
1e109bbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ffplay.c
ffplay.c
+7
-0
No files found.
ffplay.c
View file @
215a2d76
...
...
@@ -3781,6 +3781,7 @@ int main(int argc, char **argv)
int
flags
;
VideoState
*
is
;
char
dummy_videodriver
[]
=
"SDL_VIDEODRIVER=dummy"
;
char
alsa_bufsize
[]
=
"SDL_AUDIO_ALSA_SET_BUFFER_SIZE=1"
;
av_log_set_flags
(
AV_LOG_SKIP_REPEATED
);
parse_loglevel
(
argc
,
argv
,
options
);
...
...
@@ -3818,6 +3819,12 @@ int main(int argc, char **argv)
flags
=
SDL_INIT_VIDEO
|
SDL_INIT_AUDIO
|
SDL_INIT_TIMER
;
if
(
audio_disable
)
flags
&=
~
SDL_INIT_AUDIO
;
else
{
/* Try to work around an occasional ALSA buffer underflow issue when the
* period size is NPOT due to ALSA resampling by forcing the buffer size. */
if
(
!
SDL_getenv
(
"SDL_AUDIO_ALSA_SET_BUFFER_SIZE"
))
SDL_putenv
(
alsa_bufsize
);
}
if
(
display_disable
)
SDL_putenv
(
dummy_videodriver
);
/* For the event queue, we always need a video driver. */
#if !defined(_WIN32) && !defined(__APPLE__)
...
...
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