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
e0cea405
Commit
e0cea405
authored
May 04, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout_ios: implement gl.getProcAddress
parent
572ee290
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
modules/video_output/ios.m
modules/video_output/ios.m
+12
-2
No files found.
modules/video_output/ios.m
View file @
e0cea405
...
...
@@ -28,7 +28,8 @@
#import <UIKit/UIKit.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#include <QuartzCore/QuartzCore.h>
#import <QuartzCore/QuartzCore.h>
#import <dlfcn.h>
#ifdef HAVE_CONFIG_H
# include "config.h"
...
...
@@ -54,6 +55,8 @@ static void PictureRender(vout_display_t *vd, picture_t *pic, subpicture_t *subp
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
OpenglClean
(
vlc_gl_t
*
gl
);
static
void
OpenglSwap
(
vlc_gl_t
*
gl
);
...
...
@@ -101,6 +104,13 @@ 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_MAIN_ONLY
,
name
);
}
// Called from vout thread
static
int
Open
(
vlc_object_t
*
this
)
{
...
...
@@ -148,7 +158,7 @@ static int Open(vlc_object_t *this)
sys
->
gl
.
lock
=
OpenglClean
;
// We don't do locking, but sometimes we need to cleanup the framebuffer
sys
->
gl
.
unlock
=
NULL
;
sys
->
gl
.
swap
=
OpenglSwap
;
sys
->
gl
.
getProcAddress
=
NULL
;
sys
->
gl
.
getProcAddress
=
OurGetProcAddress
;
sys
->
gl
.
sys
=
sys
;
sys
->
vgl
=
vout_display_opengl_New
(
&
vd
->
fmt
,
NULL
,
&
sys
->
gl
);
...
...
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