Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e87072e0
Commit
e87072e0
authored
Jun 02, 2011
by
Laurent Aimar
Browse files
Added HasExtension() to search for an extension in opengl.
The code is based on CheckAPI from egl.c
parent
070c5b31
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_output/opengl.h
View file @
e87072e0
...
...
@@ -56,6 +56,19 @@
# endif
#endif
static
inline
bool
HasExtension
(
const
char
*
apis
,
const
char
*
api
)
{
size_t
apilen
=
strlen
(
api
);
while
(
apis
)
{
while
(
*
apis
==
' '
)
apis
++
;
if
(
!
strncmp
(
apis
,
api
,
apilen
)
&&
memchr
(
" "
,
apis
[
apilen
],
2
))
return
true
;
apis
=
strchr
(
apis
,
' '
);
}
return
false
;
}
typedef
struct
vout_display_opengl_t
vout_display_opengl_t
;
vout_display_opengl_t
*
vout_display_opengl_New
(
video_format_t
*
fmt
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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