Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
48697854
Commit
48697854
authored
Jan 26, 2004
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gui/macosx/vout.m: fixed a mistake (fixes the main memory leak btw)
parent
f7081995
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+14
-15
No files found.
modules/gui/macosx/vout.m
View file @
48697854
...
...
@@ -2,7 +2,7 @@
* vout.m: MacOS X video output module
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: vout.m,v 1.7
0 2004/01/26 18:30:37
titer Exp $
* $Id: vout.m,v 1.7
1 2004/01/26 20:00:33
titer Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
...
...
@@ -1323,21 +1323,20 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
if
(
!
i_textures_loaded
)
{
int
i
;
glGenTextures
(
3
,
pi_textures
);
for
(
i
=
0
;
i
<
3
;
i
++
)
{
/* Create the texture */
glDisable
(
GL_TEXTURE_2D
);
glEnable
(
GL_TEXTURE_RECTANGLE_EXT
);
glBindTexture
(
GL_TEXTURE_RECTANGLE_EXT
,
pi_textures
[
i
]
);
/* Map our buffer to the texture */
glTexImage2D
(
GL_TEXTURE_RECTANGLE_EXT
,
0
,
GL_RGB8
,
p_vout
->
output
.
i_width
,
p_vout
->
output
.
i_height
,
0
,
GL_YCBCR_422_APPLE
,
GL_UNSIGNED_SHORT_8_8_APPLE
,
PP_OUTPUTPICTURE
[
i
]
->
p_data
);
}
i_textures_loaded
=
1
;
}
else
{
glDisable
(
GL_TEXTURE_2D
);
glEnable
(
GL_TEXTURE_RECTANGLE_EXT
);
glBindTexture
(
GL_TEXTURE_RECTANGLE_EXT
,
pi_textures
[
i_index
]);
/* Map our buffer to the texture */
glTexImage2D
(
GL_TEXTURE_RECTANGLE_EXT
,
0
,
GL_RGB8
,
p_vout
->
output
.
i_width
,
p_vout
->
output
.
i_height
,
0
,
GL_YCBCR_422_APPLE
,
GL_UNSIGNED_SHORT_8_8_APPLE
,
PP_OUTPUTPICTURE
[
i_index
]
->
p_data
);
}
glDisable
(
GL_TEXTURE_2D
);
...
...
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