Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
184cca52
Commit
184cca52
authored
Jan 22, 2014
by
Simon Morlat
Browse files
clear X11 window when video size changes.
It will work provided that the window has a background color defined.
parent
e3e7cad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/videofilters/x11video.c
src/videofilters/x11video.c
+1
-0
No files found.
src/videofilters/x11video.c
View file @
184cca52
...
...
@@ -184,6 +184,7 @@ static void x11video_prepare(MSFilter *f){
XSelectInput
(
s
->
display
,
s
->
window_id
,
StructureNotifyMask
);
}
XGetWindowAttributes
(
s
->
display
,
s
->
window_id
,
&
wa
);
XClearWindow
(
s
->
display
,
s
->
window_id
);
ms_message
(
"x11video_prepare(): Window has size %ix%i, received video is %ix%i"
,
wa
.
width
,
wa
.
height
,
s
->
vsize
.
width
,
s
->
vsize
.
height
);
if
(
wa
.
width
<
MS_LAYOUT_MIN_SIZE
||
wa
.
height
<
MS_LAYOUT_MIN_SIZE
){
...
...
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