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
7fe71cc9
Commit
7fe71cc9
authored
Aug 19, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout_macosx: fixed memory leak
parent
a70646ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/video_output/macosx.m
modules/video_output/macosx.m
+7
-1
No files found.
modules/video_output/macosx.m
View file @
7fe71cc9
...
@@ -207,8 +207,10 @@ static int Open(vlc_object_t *this)
...
@@ -207,8 +207,10 @@ static int Open(vlc_object_t *this)
sys
->
gl
.
swap
=
OpenglSwap
;
sys
->
gl
.
swap
=
OpenglSwap
;
sys
->
gl
.
getProcAddress
=
NULL
;
sys
->
gl
.
getProcAddress
=
NULL
;
sys
->
gl
.
sys
=
sys
;
sys
->
gl
.
sys
=
sys
;
const
vlc_fourcc_t
*
subpicture_chromas
;
video_format_t
fmt
=
vd
->
fmt
;
sys
->
vgl
=
vout_display_opengl_New
(
&
vd
->
fmt
,
NULL
,
&
sys
->
gl
);
sys
->
vgl
=
vout_display_opengl_New
(
&
vd
->
fmt
,
&
subpicture_chromas
,
&
sys
->
gl
);
if
(
!
sys
->
vgl
)
if
(
!
sys
->
vgl
)
{
{
sys
->
gl
.
sys
=
NULL
;
sys
->
gl
.
sys
=
NULL
;
...
@@ -218,6 +220,8 @@ static int Open(vlc_object_t *this)
...
@@ -218,6 +220,8 @@ static int Open(vlc_object_t *this)
/* */
/* */
vout_display_info_t
info
=
vd
->
info
;
vout_display_info_t
info
=
vd
->
info
;
info
.
has_pictures_invalid
=
false
;
info
.
has_pictures_invalid
=
false
;
info
.
has_event_thread
=
true
;
info
.
subpicture_chromas
=
subpicture_chromas
;
/* Setup vout_display_t once everything is fine */
/* Setup vout_display_t once everything is fine */
vd
->
info
=
info
;
vd
->
info
=
info
;
...
@@ -329,6 +333,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
...
@@ -329,6 +333,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
case
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
:
case
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
:
case
VOUT_DISPLAY_CHANGE_SOURCE_CROP
:
case
VOUT_DISPLAY_CHANGE_SOURCE_CROP
:
{
{
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
NSPoint
topleftbase
;
NSPoint
topleftbase
;
NSPoint
topleftscreen
;
NSPoint
topleftscreen
;
NSRect
new_frame
;
NSRect
new_frame
;
...
@@ -364,6 +369,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
...
@@ -364,6 +369,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
[
sys
->
glView
performSelectorOnMainThread
:
@selector
(
setWindowFrameWithValue
:)
withObject
:
[
NSValue
valueWithRect
:
new_frame
]
waitUntilDone
:
NO
];
[
sys
->
glView
performSelectorOnMainThread
:
@selector
(
setWindowFrameWithValue
:)
withObject
:
[
NSValue
valueWithRect
:
new_frame
]
waitUntilDone
:
NO
];
}
}
[
o_pool
release
];
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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