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
ee53f903
Commit
ee53f903
authored
Sep 28, 2006
by
Pavlov Konstantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport [16272]
parent
bc66340f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+2
-2
modules/gui/wxwidgets/video.cpp
modules/gui/wxwidgets/video.cpp
+2
-2
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+5
-6
No files found.
modules/gui/skins2/src/vlcproc.cpp
View file @
ee53f903
...
...
@@ -209,7 +209,7 @@ void VlcProc::registerVoutWindow( void *pVoutWindow )
// Reparent the vout window
if
(
m_pVout
)
{
if
(
vout_Control
(
m_pVout
,
VOUT_REPARENT
)
!=
VLC_SUCCESS
)
if
(
vout_Control
(
m_pVout
,
VOUT_REPARENT
,
0
)
!=
VLC_SUCCESS
)
vout_Control
(
m_pVout
,
VOUT_CLOSE
);
}
}
...
...
@@ -225,7 +225,7 @@ void VlcProc::dropVout()
{
if
(
m_pVout
)
{
if
(
vout_Control
(
m_pVout
,
VOUT_REPARENT
)
!=
VLC_SUCCESS
)
if
(
vout_Control
(
m_pVout
,
VOUT_REPARENT
,
0
)
!=
VLC_SUCCESS
)
vout_Control
(
m_pVout
,
VOUT_CLOSE
);
m_pVout
=
NULL
;
}
...
...
modules/gui/wxwidgets/video.cpp
View file @
ee53f903
...
...
@@ -154,11 +154,11 @@ VideoWindow::~VideoWindow()
if
(
!
p_intf
->
psz_switch_intf
)
{
if
(
vout_Control
(
p_vout
,
VOUT_CLOSE
)
!=
VLC_SUCCESS
)
vout_Control
(
p_vout
,
VOUT_REPARENT
);
vout_Control
(
p_vout
,
VOUT_REPARENT
,
0
);
}
else
{
if
(
vout_Control
(
p_vout
,
VOUT_REPARENT
)
!=
VLC_SUCCESS
)
if
(
vout_Control
(
p_vout
,
VOUT_REPARENT
,
0
)
!=
VLC_SUCCESS
)
vout_Control
(
p_vout
,
VOUT_CLOSE
);
}
}
...
...
modules/video_output/x11/xcommon.c
View file @
ee53f903
...
...
@@ -2346,7 +2346,7 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
vlc_bool_t
b_arg
;
unsigned
int
i_width
,
i_height
;
unsigned
int
*
pi_width
,
*
pi_height
;
Drawable
d
;
Drawable
d
=
0
;
switch
(
i_query
)
{
...
...
@@ -2393,17 +2393,16 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
case
VOUT_REPARENT
:
vlc_mutex_lock
(
&
p_vout
->
p_sys
->
lock
);
d
=
va_arg
(
args
,
Drawable
);
if
(
!
d
)
if
(
i_query
==
VOUT_REPARENT
)
d
=
(
Drawable
)
va_arg
(
args
,
int
);
if
(
!
d
)
XReparentWindow
(
p_vout
->
p_sys
->
p_display
,
p_vout
->
p_sys
->
original_window
.
base_window
,
DefaultRootWindow
(
p_vout
->
p_sys
->
p_display
),
0
,
0
);
else
else
XReparentWindow
(
p_vout
->
p_sys
->
p_display
,
p_vout
->
p_sys
->
original_window
.
base_window
,
d
,
0
,
0
);
d
,
0
,
0
);
XSync
(
p_vout
->
p_sys
->
p_display
,
False
);
p_vout
->
p_sys
->
original_window
.
owner_window
=
0
;
vlc_mutex_unlock
(
&
p_vout
->
p_sys
->
lock
);
...
...
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