Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
0190d857
Commit
0190d857
authored
Oct 08, 2006
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/x11/xcommon.c: proper fix for the previous memory leak.
parent
ab2bdb9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+5
-5
No files found.
modules/video_output/x11/xcommon.c
View file @
0190d857
...
@@ -1996,7 +1996,7 @@ static int InitDisplay( vout_thread_t *p_vout )
...
@@ -1996,7 +1996,7 @@ static int InitDisplay( vout_thread_t *p_vout )
XPixmapFormatValues
*
p_formats
;
/* pixmap formats */
XPixmapFormatValues
*
p_formats
;
/* pixmap formats */
XVisualInfo
*
p_xvisual
;
/* visuals information */
XVisualInfo
*
p_xvisual
;
/* visuals information */
XVisualInfo
xvisual_template
;
/* visual template */
XVisualInfo
xvisual_template
;
/* visual template */
int
i_count
;
/* array size */
int
i_count
,
i
;
/* array size */
#endif
#endif
#ifdef HAVE_SYS_SHM_H
#ifdef HAVE_SYS_SHM_H
...
@@ -2102,18 +2102,18 @@ static int InitDisplay( vout_thread_t *p_vout )
...
@@ -2102,18 +2102,18 @@ static int InitDisplay( vout_thread_t *p_vout )
p_formats
=
XListPixmapFormats
(
p_vout
->
p_sys
->
p_display
,
&
i_count
);
p_formats
=
XListPixmapFormats
(
p_vout
->
p_sys
->
p_display
,
&
i_count
);
p_vout
->
p_sys
->
i_bytes_per_pixel
=
0
;
p_vout
->
p_sys
->
i_bytes_per_pixel
=
0
;
for
(
;
i_count
--
;
p_formats
++
)
for
(
i
=
0
;
i
<
i_count
;
i
++
)
{
{
/* Under XFree4.0, the list contains pixmap formats available
/* Under XFree4.0, the list contains pixmap formats available
* through all video depths ; so we have to check against current
* through all video depths ; so we have to check against current
* depth. */
* depth. */
if
(
p_formats
->
depth
==
(
int
)
p_vout
->
p_sys
->
i_screen_depth
)
if
(
p_formats
[
i
].
depth
==
(
int
)
p_vout
->
p_sys
->
i_screen_depth
)
{
{
if
(
p_formats
->
bits_per_pixel
/
8
if
(
p_formats
[
i
].
bits_per_pixel
/
8
>
(
int
)
p_vout
->
p_sys
->
i_bytes_per_pixel
)
>
(
int
)
p_vout
->
p_sys
->
i_bytes_per_pixel
)
{
{
p_vout
->
p_sys
->
i_bytes_per_pixel
=
p_vout
->
p_sys
->
i_bytes_per_pixel
=
p_formats
->
bits_per_pixel
/
8
;
p_formats
[
i
].
bits_per_pixel
/
8
;
}
}
}
}
}
}
...
...
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