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
3f3e7231
Commit
3f3e7231
authored
Apr 15, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: rationalize/uniformize video window setters
parent
a58d7c76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
lib/media_player.c
lib/media_player.c
+12
-3
No files found.
lib/media_player.c
View file @
3f3e7231
...
...
@@ -963,8 +963,9 @@ void libvlc_video_set_callbacks( libvlc_media_player_t *mp,
var_SetAddress
(
mp
,
"vmem-unlock"
,
unlock_cb
);
var_SetAddress
(
mp
,
"vmem-display"
,
display_cb
);
var_SetAddress
(
mp
,
"vmem-data"
,
opaque
);
var_SetString
(
mp
,
"vout"
,
"vmem"
);
var_SetString
(
mp
,
"avcodec-hw"
,
"none"
);
var_SetString
(
mp
,
"vout"
,
"vmem"
);
var_SetString
(
mp
,
"window"
,
"none"
);
}
void
libvlc_video_set_format_callbacks
(
libvlc_media_player_t
*
mp
,
...
...
@@ -992,6 +993,9 @@ void libvlc_media_player_set_nsobject( libvlc_media_player_t *p_mi,
{
assert
(
p_mi
!=
NULL
);
#ifdef __APPLE__
var_SetString
(
p_mi
,
"avcodec-hw"
,
""
);
var_SetString
(
p_mi
,
"vout"
,
""
);
var_SetString
(
p_mi
,
"window"
,
""
);
var_SetAddress
(
p_mi
,
"drawable-nsobject"
,
drawable
);
#else
(
void
)
p_mi
;
(
void
)
drawable
;
...
...
@@ -1018,6 +1022,9 @@ void libvlc_media_player_set_agl( libvlc_media_player_t *p_mi,
uint32_t
drawable
)
{
#ifdef __APPLE__
var_SetString
(
p_mi
,
"avcodec-hw"
,
""
);
var_SetString
(
p_mi
,
"vout"
,
""
);
var_SetString
(
p_mi
,
"window"
,
"none"
);
var_SetInteger
(
p_mi
,
"drawable-agl"
,
drawable
);
#else
(
void
)
p_mi
;
(
void
)
drawable
;
...
...
@@ -1046,8 +1053,8 @@ void libvlc_media_player_set_xwindow( libvlc_media_player_t *p_mi,
assert
(
p_mi
!=
NULL
);
var_SetString
(
p_mi
,
"avcodec-hw"
,
""
);
var_SetString
(
p_mi
,
"vout"
,
drawable
?
"xid"
:
"
any
"
);
var_SetString
(
p_mi
,
"window"
,
drawable
?
"embed-xid,any"
:
"
any
"
);
var_SetString
(
p_mi
,
"vout"
,
drawable
?
"xid"
:
""
);
var_SetString
(
p_mi
,
"window"
,
drawable
?
"embed-xid,any"
:
""
);
var_SetInteger
(
p_mi
,
"drawable-xid"
,
drawable
);
}
...
...
@@ -1067,6 +1074,8 @@ void libvlc_media_player_set_hwnd( libvlc_media_player_t *p_mi,
{
assert
(
p_mi
!=
NULL
);
#if defined (_WIN32) || defined (__OS2__)
var_SetString
(
p_mi
,
"avcodec-hw"
,
""
);
var_SetString
(
p_mi
,
"vout"
,
""
);
var_SetString
(
p_mi
,
"window"
,
(
drawable
!=
NULL
)
?
"embed-hwnd,any"
:
""
);
var_SetInteger
(
p_mi
,
"drawable-hwnd"
,
(
uintptr_t
)
drawable
);
...
...
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