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
a15af1b9
Commit
a15af1b9
authored
Jul 05, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Make sure we don't leak an input_thread_t.
parent
b0d34dd0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+0
-3
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+9
-6
No files found.
modules/gui/macosx/intf.h
View file @
a15af1b9
...
...
@@ -67,9 +67,6 @@ struct intf_sys_t
{
NSAutoreleasePool
*
o_pool
;
/* the current input */
input_thread_t
*
p_input
;
/* special actions */
bool
b_mute
;
int
i_play_status
;
...
...
modules/gui/macosx/intf.m
View file @
a15af1b9
...
...
@@ -1132,6 +1132,7 @@ static VLCMain *_o_sharedMainInstance = nil;
-
(
void
)
manage
{
playlist_t
*
p_playlist
;
input_thread_t
*
p_input
=
NULL
;
/* new thread requires a new pool */
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
...
...
@@ -1153,25 +1154,25 @@ static VLCMain *_o_sharedMainInstance = nil;
{
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
if
(
p_intf
->
p_sys
->
p_input
==
NULL
)
if
(
!
p_input
)
{
p_in
tf
->
p_sys
->
p_in
put
=
playlist_CurrentInput
(
p_playlist
);
p_input
=
playlist_CurrentInput
(
p_playlist
);
/* Refresh the interface */
if
(
p_in
tf
->
p_sys
->
p_in
put
)
if
(
p_input
)
{
msg_Dbg
(
p_intf
,
"input has changed, refreshing interface"
);
p_intf
->
p_sys
->
b_input_update
=
true
;
}
}
else
if
(
!
vlc_object_alive
(
p_in
tf
->
p_sys
->
p_input
)
||
p_intf
->
p_sys
->
p_input
->
b_dead
)
else
if
(
!
vlc_object_alive
(
p_in
put
)
||
p_input
->
b_dead
)
{
/* input stopped */
p_intf
->
p_sys
->
b_intf_update
=
true
;
p_intf
->
p_sys
->
i_play_status
=
END_S
;
msg_Dbg
(
p_intf
,
"input has stopped, refreshing interface"
);
vlc_object_release
(
p_in
tf
->
p_sys
->
p_in
put
);
p_in
tf
->
p_sys
->
p_in
put
=
NULL
;
vlc_object_release
(
p_input
);
p_input
=
NULL
;
}
/* Manage volume status */
...
...
@@ -1184,6 +1185,8 @@ static VLCMain *_o_sharedMainInstance = nil;
vlc_object_unlock
(
p_intf
);
[
o_pool
release
];
if
(
p_input
)
vlc_object_release
(
p_input
);
var_DelCallback
(
p_playlist
,
"playlist-current"
,
PlaylistChanged
,
self
);
var_DelCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
self
);
var_DelCallback
(
p_playlist
,
"item-change"
,
PlaylistChanged
,
self
);
...
...
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