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
d8064603
Commit
d8064603
authored
Apr 25, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make drawable-xid a config item, so VLC can be embedded from the CLI
parent
ed9c773e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
modules/video_output/drawable.c
modules/video_output/drawable.c
+8
-0
src/libvlc.c
src/libvlc.c
+1
-1
No files found.
modules/video_output/drawable.c
View file @
d8064603
...
@@ -36,6 +36,11 @@ static int OpenXID (vlc_object_t *);
...
@@ -36,6 +36,11 @@ static int OpenXID (vlc_object_t *);
static
int
OpenHWND
(
vlc_object_t
*
);
static
int
OpenHWND
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#define XID_TEXT N_("ID of the video output X window")
#define XID_LONGTEXT N_( \
"VLC can embed its video output in an existing X11 window. " \
"This is the X identifier of that window (0 means none).")
/*
/*
* Module descriptor
* Module descriptor
*/
*/
...
@@ -46,6 +51,9 @@ vlc_module_begin ()
...
@@ -46,6 +51,9 @@ vlc_module_begin ()
set_subcategory
(
SUBCAT_VIDEO_VOUT
)
set_subcategory
(
SUBCAT_VIDEO_VOUT
)
set_capability
(
"xwindow"
,
70
)
set_capability
(
"xwindow"
,
70
)
set_callbacks
(
OpenXID
,
Close
)
set_callbacks
(
OpenXID
,
Close
)
add_integer
(
"drawable-xid"
,
0
,
NULL
,
XID_TEXT
,
XID_LONGTEXT
,
true
)
change_unsaveable
()
/*change_integer_range (0, 0xffffffff)*/
add_submodule
()
add_submodule
()
set_description
(
N_
(
"Embedded Windows video"
))
set_description
(
N_
(
"Embedded Windows video"
))
...
...
src/libvlc.c
View file @
d8064603
...
@@ -986,7 +986,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
...
@@ -986,7 +986,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
/*
/*
* FIXME: kludge to use a p_libvlc-local variable for the Mozilla plugin
* FIXME: kludge to use a p_libvlc-local variable for the Mozilla plugin
*/
*/
var_Create
(
p_libvlc
,
"drawable-xid"
,
VLC_VAR_INTEGER
);
var_Create
(
p_libvlc
,
"drawable-xid"
,
VLC_VAR_
DOINHERIT
|
VLC_VAR_
INTEGER
);
var_Create
(
p_libvlc
,
"drawable-hwnd"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_libvlc
,
"drawable-hwnd"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_libvlc
,
"drawable-agl"
,
VLC_VAR_INTEGER
);
var_Create
(
p_libvlc
,
"drawable-agl"
,
VLC_VAR_INTEGER
);
var_Create
(
p_libvlc
,
"drawable-gl"
,
VLC_VAR_INTEGER
);
var_Create
(
p_libvlc
,
"drawable-gl"
,
VLC_VAR_INTEGER
);
...
...
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