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
7b51aa6a
Commit
7b51aa6a
authored
Aug 26, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Use pl_CurrentInput properly, and make sure we don't dereference NULL.
parent
74bd916a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+7
-2
No files found.
modules/gui/macosx/intf.m
View file @
7b51aa6a
...
...
@@ -284,8 +284,9 @@ bool checkProgressPanel (void *priv)
input_thread_t
*
getInput
(
void
)
{
intf_thread_t
*
p_intf
=
VLCIntf
;
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
input_thread_t
*
p_input
=
pl_CurrentInput
(
p_playlist
);
if
(
!
p_intf
)
return
NULL
;
input_thread_t
*
p_input
=
pl_CurrentInput
(
p_intf
);
pl_Release
(
p_playlist
);
return
p_input
;
}
...
...
@@ -293,6 +294,8 @@ input_thread_t *getInput(void)
vout_thread_t
*
getVout
(
void
)
{
input_thread_t
*
p_input
=
getInput
();
if
(
!
p_input
)
return
NULL
;
vout_thread_t
*
p_vout
=
input_GetVout
(
p_input
);
vlc_object_release
(
p_input
);
return
p_vout
;
...
...
@@ -301,6 +304,8 @@ vout_thread_t *getVout(void)
aout_instance_t
*
getAout
(
void
)
{
input_thread_t
*
p_input
=
getInput
();
if
(
!
p_input
)
return
NULL
;
aout_instance_t
*
p_aout
=
input_GetAout
(
p_input
);
vlc_object_release
(
p_input
);
return
p_aout
;
...
...
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