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
572ee290
Commit
572ee290
authored
May 04, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout_macosx: implement gl.getProcAddress
parent
5db50265
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
modules/video_output/macosx.m
modules/video_output/macosx.m
+12
-1
No files found.
modules/video_output/macosx.m
View file @
572ee290
...
...
@@ -36,6 +36,7 @@
#import <Cocoa/Cocoa.h>
#import <OpenGL/OpenGL.h>
#import <dlfcn.h>
#ifdef HAVE_CONFIG_H
# include "config.h"
...
...
@@ -63,6 +64,8 @@ static void PictureRender (vout_display_t *vd, picture_t *pic, subpicture_t *sub
static
void
PictureDisplay
(
vout_display_t
*
vd
,
picture_t
*
pic
,
subpicture_t
*
subpicture
);
static
int
Control
(
vout_display_t
*
vd
,
int
query
,
va_list
ap
);
static
void
*
OurGetProcAddress
(
vlc_gl_t
*
,
const
char
*
);
static
int
OpenglLock
(
vlc_gl_t
*
gl
);
static
void
OpenglUnlock
(
vlc_gl_t
*
gl
);
static
void
OpenglSwap
(
vlc_gl_t
*
gl
);
...
...
@@ -115,6 +118,14 @@ struct vout_display_sys_t
bool
has_first_frame
;
};
static
void
*
OurGetProcAddress
(
vlc_gl_t
*
gl
,
const
char
*
name
)
{
VLC_UNUSED
(
gl
);
return
dlsym
(
RTLD_DEFAULT
,
name
);
}
static
int
Open
(
vlc_object_t
*
this
)
{
vout_display_t
*
vd
=
(
vout_display_t
*
)
this
;
...
...
@@ -203,7 +214,7 @@ static int Open (vlc_object_t *this)
sys
->
gl
.
lock
=
OpenglLock
;
sys
->
gl
.
unlock
=
OpenglUnlock
;
sys
->
gl
.
swap
=
OpenglSwap
;
sys
->
gl
.
getProcAddress
=
NULL
;
sys
->
gl
.
getProcAddress
=
OurGetProcAddress
;
sys
->
gl
.
sys
=
sys
;
const
vlc_fourcc_t
*
subpicture_chromas
;
video_format_t
fmt
=
vd
->
fmt
;
...
...
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