Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5cd26ef1
Commit
5cd26ef1
authored
Oct 13, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gl: do not specify a type for the requested window
parent
e83fa9c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
25 deletions
+10
-25
modules/video_output/gl.c
modules/video_output/gl.c
+10
-25
No files found.
modules/video_output/gl.c
View file @
5cd26ef1
...
...
@@ -93,30 +93,6 @@ static void PictureRender (vout_display_t *, picture_t *, subpicture_t *);
static
void
PictureDisplay
(
vout_display_t
*
,
picture_t
*
,
subpicture_t
*
);
static
int
Control
(
vout_display_t
*
,
int
,
va_list
);
static
vout_window_t
*
MakeWindow
(
vout_display_t
*
vd
)
{
vout_window_cfg_t
cfg
=
{
.
width
=
vd
->
cfg
->
display
.
width
,
.
height
=
vd
->
cfg
->
display
.
height
,
};
vout_window_t
*
wnd
;
#if defined(_WIN32)
cfg
.
type
=
VOUT_WINDOW_TYPE_HWND
;
#elif defined(__ANDROID__)
cfg
.
type
=
VOUT_WINDOW_TYPE_ANDROID_NATIVE
;
#else
cfg
.
type
=
VOUT_WINDOW_TYPE_XID
;
#endif
wnd
=
vout_display_NewWindow
(
vd
,
&
cfg
);
if
(
wnd
!=
NULL
)
return
wnd
;
msg_Err
(
vd
,
"parent window not available"
);
return
NULL
;
}
/**
* Allocates a surface and an OpenGL context for video output.
*/
...
...
@@ -130,9 +106,18 @@ static int Open (vlc_object_t *obj)
sys
->
gl
=
NULL
;
sys
->
pool
=
NULL
;
vout_window_t
*
surface
=
MakeWindow
(
vd
);
vout_window_cfg_t
cfg
=
{
.
type
=
VOUT_WINDOW_TYPE_INVALID
,
/* any */
.
width
=
vd
->
cfg
->
display
.
width
,
.
height
=
vd
->
cfg
->
display
.
height
,
};
vout_window_t
*
surface
=
vout_display_NewWindow
(
vd
,
&
cfg
);
if
(
surface
==
NULL
)
{
msg_Err
(
vd
,
"parent window not available"
);
goto
error
;
}
sys
->
gl
=
vlc_gl_Create
(
surface
,
API
,
"$"
MODULE_VARNAME
);
if
(
sys
->
gl
==
NULL
)
...
...
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