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
0926bbb6
Commit
0926bbb6
authored
Aug 01, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split back window module providers by type.
parent
592f40d6
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
32 additions
and
24 deletions
+32
-24
include/vlc_vout_window.h
include/vlc_vout_window.h
+1
-1
modules/gui/maemo/maemo.c
modules/gui/maemo/maemo.c
+2
-3
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+5
-9
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/skin_main.cpp
+5
-1
modules/video_output/drawable.c
modules/video_output/drawable.c
+2
-2
modules/video_output/omapfb.c
modules/video_output/omapfb.c
+1
-1
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+1
-1
modules/video_output/xcb/common.c
modules/video_output/xcb/common.c
+1
-1
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+1
-4
src/video_output/window.c
src/video_output/window.c
+13
-1
No files found.
include/vlc_vout_window.h
View file @
0926bbb6
...
...
@@ -41,7 +41,7 @@ typedef struct vout_window_sys_t vout_window_sys_t;
* Window handle type
*/
enum
{
VOUT_WINDOW_TYPE_X
WINDOW
,
VOUT_WINDOW_TYPE_X
ID
,
VOUT_WINDOW_TYPE_HWND
,
};
...
...
modules/gui/maemo/maemo.c
View file @
0926bbb6
...
...
@@ -70,7 +70,7 @@ vlc_module_begin();
add_shortcut
(
"maemo"
);
add_submodule
();
set_capability
(
"vout window"
,
50
);
set_capability
(
"vout window
xid
"
,
50
);
set_callbacks
(
OpenWindow
,
CloseWindow
);
vlc_module_end
();
...
...
@@ -265,8 +265,7 @@ static int OpenWindow (vlc_object_t *obj)
{
vout_window_t
*
wnd
=
(
vout_window_t
*
)
obj
;
if
(
wnd
->
cfg
->
type
!=
VOUT_WINDOW_TYPE_XWINDOW
||
wnd
->
cfg
->
is_standalone
)
if
(
wnd
->
cfg
->
is_standalone
)
return
VLC_EGENERIC
;
intf_thread_t
*
intf
=
(
intf_thread_t
*
)
vlc_object_find_name
(
obj
,
"maemo"
,
FIND_ANYWHERE
);
...
...
modules/gui/qt4/qt4.cpp
View file @
0926bbb6
...
...
@@ -243,7 +243,11 @@ vlc_module_begin ()
#if defined(Q_WS_X11) || defined(WIN32)
add_submodule
()
set_capability
(
"vout window"
,
50
)
#if defined(Q_WS_X11)
set_capability
(
"vout window xid"
,
50
)
#elif defined(WIN32)
set_capability
(
"vout window hwnd"
,
50
)
#endif
set_callbacks
(
WindowOpen
,
WindowClose
)
#endif
...
...
@@ -518,14 +522,6 @@ static int WindowOpen( vlc_object_t *p_obj )
{
vout_window_t
*
p_wnd
=
(
vout_window_t
*
)
p_obj
;
/* Check compatibility */
#if defined (Q_WS_X11)
if
(
p_wnd
->
cfg
->
type
!=
VOUT_WINDOW_TYPE_XWINDOW
)
#elif defined (WIN32)
if
(
p_wnd
->
cfg
->
type
!=
VOUT_WINDOW_TYPE_HWND
)
#endif
return
VLC_EGENERIC
;
/* */
if
(
p_wnd
->
cfg
->
is_standalone
)
return
VLC_EGENERIC
;
...
...
modules/gui/skins2/src/skin_main.cpp
View file @
0926bbb6
...
...
@@ -569,7 +569,11 @@ vlc_module_begin ()
add_shortcut
(
"skins"
)
add_submodule
()
set_capability
(
"vout window"
,
51
)
#ifdef WIN32
set_capability
(
"vout window hwnd"
,
51
)
#else
set_capability
(
"vout window xid"
,
51
)
#endif
set_callbacks
(
WindowOpen
,
WindowClose
)
add_submodule
()
...
...
modules/video_output/drawable.c
View file @
0926bbb6
...
...
@@ -47,7 +47,7 @@ vlc_module_begin ()
set_description
(
N_
(
"Embedded window video"
))
set_category
(
CAT_VIDEO
)
set_subcategory
(
SUBCAT_VIDEO_VOUT
)
set_capability
(
"vout window"
,
70
)
set_capability
(
"vout window
xid
"
,
70
)
set_callbacks
(
Open
,
Close
)
add_integer
(
"drawable-xid"
,
0
,
NULL
,
XID_TEXT
,
XID_LONGTEXT
,
true
)
change_unsaveable
()
...
...
@@ -77,7 +77,7 @@ static int Open (vlc_object_t *obj)
switch
(
wnd
->
cfg
->
type
)
{
case
VOUT_WINDOW_TYPE_X
WINDOW
:
case
VOUT_WINDOW_TYPE_X
ID
:
varname
=
"drawable-xid"
;
ptr
=
false
;
break
;
...
...
modules/video_output/omapfb.c
View file @
0926bbb6
...
...
@@ -668,7 +668,7 @@ static int InitWindow( vout_thread_t *p_vout )
vout_window_cfg_t
wnd_cfg
;
memset
(
&
wnd_cfg
,
0
,
sizeof
(
wnd_cfg
)
);
wnd_cfg
.
type
=
VOUT_WINDOW_TYPE_X
WINDOW
;
wnd_cfg
.
type
=
VOUT_WINDOW_TYPE_X
ID
;
wnd_cfg
.
x
=
p_sys
->
embedded_window
.
i_x
;
wnd_cfg
.
y
=
p_sys
->
embedded_window
.
i_y
;
wnd_cfg
.
width
=
p_sys
->
embedded_window
.
i_width
;
...
...
modules/video_output/x11/xcommon.c
View file @
0926bbb6
...
...
@@ -1612,7 +1612,7 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
{
vout_window_cfg_t
wnd_cfg
;
memset
(
&
wnd_cfg
,
0
,
sizeof
(
wnd_cfg
)
);
wnd_cfg
.
type
=
VOUT_WINDOW_TYPE_X
WINDOW
;
wnd_cfg
.
type
=
VOUT_WINDOW_TYPE_X
ID
;
wnd_cfg
.
x
=
p_win
->
i_x
;
wnd_cfg
.
y
=
p_win
->
i_y
;
wnd_cfg
.
width
=
p_win
->
i_width
;
...
...
modules/video_output/xcb/common.c
View file @
0926bbb6
...
...
@@ -72,7 +72,7 @@ vout_window_t *GetWindow (vout_thread_t *obj,
vout_window_cfg_t
wnd_cfg
;
memset
(
&
wnd_cfg
,
0
,
sizeof
(
wnd_cfg
)
);
wnd_cfg
.
type
=
VOUT_WINDOW_TYPE_X
WINDOW
;
wnd_cfg
.
type
=
VOUT_WINDOW_TYPE_X
ID
;
wnd_cfg
.
width
=
obj
->
i_window_width
;
wnd_cfg
.
height
=
obj
->
i_window_height
;
...
...
modules/video_output/xcb/window.c
View file @
0926bbb6
...
...
@@ -56,7 +56,7 @@ vlc_module_begin ()
set_description
(
N_
(
"(Experimental) XCB video window"
))
set_category
(
CAT_VIDEO
)
set_subcategory
(
SUBCAT_VIDEO_VOUT
)
set_capability
(
"vout window"
,
10
)
set_capability
(
"vout window
xid
"
,
10
)
set_callbacks
(
Open
,
Close
)
add_string
(
"x11-display"
,
NULL
,
NULL
,
...
...
@@ -144,9 +144,6 @@ static int Open (vlc_object_t *obj)
xcb_generic_error_t
*
err
;
xcb_void_cookie_t
ck
;
if
(
wnd
->
cfg
->
type
!=
VOUT_WINDOW_TYPE_XWINDOW
)
return
VLC_EGENERIC
;
vout_window_sys_t
*
p_sys
=
malloc
(
sizeof
(
*
p_sys
));
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
...
...
src/video_output/window.c
View file @
0926bbb6
...
...
@@ -46,7 +46,19 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
vlc_object_attach
(
window
,
obj
);
window
->
module
=
module_need
(
window
,
"vout window"
,
const
char
*
type
;
switch
(
cfg
->
type
)
{
case
VOUT_WINDOW_TYPE_HWND
:
type
=
"vout window hwnd"
;
break
;
default:
assert
(
0
);
case
VOUT_WINDOW_TYPE_XID
:
type
=
"vout window xid"
;
break
;
}
window
->
module
=
module_need
(
window
,
type
,
module
,
module
&&
*
module
!=
'\0'
);
if
(
!
window
->
module
)
{
vlc_object_detach
(
window
);
...
...
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