Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d0ee033c
Commit
d0ee033c
authored
Apr 19, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash when vout window is resized to 0 width
parent
24c5c471
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+5
-1
No files found.
modules/video_output/x11/xcommon.c
View file @
d0ee033c
...
...
@@ -901,6 +901,10 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
p_win
->
wm_delete_window
=
XInternAtom
(
p_vout
->
p_sys
->
p_display
,
"WM_DELETE_WINDOW"
,
True
);
/* Never have a 0-pixel-wide window */
xsize_hints
.
min_width
=
2
;
xsize_hints
.
min_height
=
1
;
/* Prepare window attributes */
xwindow_attributes
.
backing_store
=
Always
;
/* save the hidden part */
xwindow_attributes
.
background_pixel
=
BlackPixel
(
p_vout
->
p_sys
->
p_display
,
...
...
@@ -915,7 +919,7 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
xsize_hints
.
base_width
=
xsize_hints
.
width
=
p_win
->
i_width
;
xsize_hints
.
base_height
=
xsize_hints
.
height
=
p_win
->
i_height
;
xsize_hints
.
flags
=
PSize
;
xsize_hints
.
flags
=
PSize
|
PMinSize
;
if
(
p_win
->
i_x
>=
0
||
p_win
->
i_y
>=
0
)
{
...
...
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