Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2f6eb75c
Commit
2f6eb75c
authored
Oct 20, 2011
by
KO Myung-Hun
Committed by
Rémi Denis-Courmont
Oct 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add vout window support for OS/2
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
2aea85fb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
include/vlc_vout_window.h
include/vlc_vout_window.h
+2
-2
lib/media_player.c
lib/media_player.c
+3
-3
src/libvlc.c
src/libvlc.c
+1
-1
src/video_output/window.c
src/video_output/window.c
+1
-1
No files found.
include/vlc_vout_window.h
View file @
2f6eb75c
...
...
@@ -46,7 +46,7 @@ enum {
VOUT_WINDOW_TYPE_NSOBJECT
,
};
#if defined (WIN32)
#if defined (WIN32)
|| defined (__OS2__)
# define VOUT_WINDOW_TYPE_NATIVE VOUT_WINDOW_TYPE_HWND
#elif defined (__unix__)
# define VOUT_WINDOW_TYPE_NATIVE VOUT_WINDOW_TYPE_XID
...
...
@@ -113,7 +113,7 @@ struct vout_window_t {
vout_window_sys_t
*
sys
;
};
/**
/**
* Creates a new window.
*
* @param module plugin name (usually "$window")
...
...
lib/media_player.c
View file @
2f6eb75c
...
...
@@ -413,7 +413,7 @@ libvlc_media_player_new( libvlc_instance_t *instance )
var_Create
(
mp
,
"vmem-height"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
mp
,
"vmem-pitch"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
mp
,
"drawable-xid"
,
VLC_VAR_INTEGER
);
#if
def WIN32
#if
defined (WIN32) || defined (__OS2__)
var_Create
(
mp
,
"drawable-hwnd"
,
VLC_VAR_INTEGER
);
#endif
#ifdef __APPLE__
...
...
@@ -935,7 +935,7 @@ void libvlc_media_player_set_hwnd( libvlc_media_player_t *p_mi,
void
*
drawable
)
{
assert
(
p_mi
!=
NULL
);
#if
def WIN32
#if
defined (WIN32) || defined (__OS2__)
var_SetString
(
p_mi
,
"window"
,
(
drawable
!=
NULL
)
?
"embed-hwnd,any"
:
""
);
var_SetInteger
(
p_mi
,
"drawable-hwnd"
,
(
uintptr_t
)
drawable
);
...
...
@@ -950,7 +950,7 @@ void libvlc_media_player_set_hwnd( libvlc_media_player_t *p_mi,
void
*
libvlc_media_player_get_hwnd
(
libvlc_media_player_t
*
p_mi
)
{
assert
(
p_mi
!=
NULL
);
#if
def WIN32
#if
defined (WIN32) || defined (__OS2__)
return
(
void
*
)(
uintptr_t
)
var_GetInteger
(
p_mi
,
"drawable-hwnd"
);
#else
return
NULL
;
...
...
src/libvlc.c
View file @
2f6eb75c
...
...
@@ -705,7 +705,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
var_Create
(
p_libvlc
,
"drawable-clip-right"
,
VLC_VAR_INTEGER
);
var_Create
(
p_libvlc
,
"drawable-nsobject"
,
VLC_VAR_ADDRESS
);
#endif
#if
def WIN32
#if
defined (WIN32) || defined (__OS2__)
var_Create
(
p_libvlc
,
"drawable-hwnd"
,
VLC_VAR_INTEGER
);
#endif
...
...
src/video_output/window.c
View file @
2f6eb75c
...
...
@@ -64,7 +64,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
const
char
*
type
;
switch
(
cfg
->
type
)
{
#if
def WIN32
#if
defined(WIN32) || defined(__OS2__)
case
VOUT_WINDOW_TYPE_HWND
:
type
=
"vout window hwnd"
;
window
->
handle
.
hwnd
=
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