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
28d87899
Commit
28d87899
authored
Nov 17, 2016
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: allow fallback to software renderer
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
58af48f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ffplay.c
ffplay.c
+4
-0
No files found.
ffplay.c
View file @
28d87899
...
...
@@ -1282,6 +1282,10 @@ static int video_open(VideoState *is, Frame *vp)
if
(
window
)
{
SDL_RendererInfo
info
;
renderer
=
SDL_CreateRenderer
(
window
,
-
1
,
SDL_RENDERER_ACCELERATED
|
SDL_RENDERER_PRESENTVSYNC
);
if
(
!
renderer
)
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"Failed to initialize a hardware accelerated renderer: %s
\n
"
,
SDL_GetError
());
renderer
=
SDL_CreateRenderer
(
window
,
-
1
,
0
);
}
if
(
renderer
)
{
if
(
!
SDL_GetRendererInfo
(
renderer
,
&
info
))
av_log
(
NULL
,
AV_LOG_VERBOSE
,
"Initialized %s renderer.
\n
"
,
info
.
name
);
...
...
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