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
b192dc3c
Commit
b192dc3c
authored
Jan 22, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opensles: remove useless checks
those objects are guaranteed to exist
parent
a9112101
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
modules/audio_output/opensles_android.c
modules/audio_output/opensles_android.c
+5
-10
No files found.
modules/audio_output/opensles_android.c
View file @
b192dc3c
...
...
@@ -113,19 +113,15 @@ static void Clear( aout_sys_t *p_sys )
{
// Destroy buffer queue audio player object
// and invalidate all associated interfaces
if
(
p_sys
->
playerObject
!=
NULL
)
(
*
p_sys
->
playerObject
)
->
Destroy
(
p_sys
->
playerObject
);
(
*
p_sys
->
playerObject
)
->
Destroy
(
p_sys
->
playerObject
);
// destroy output mix object, and invalidate all associated interfaces
if
(
p_sys
->
outputMixObject
!=
NULL
)
(
*
p_sys
->
outputMixObject
)
->
Destroy
(
p_sys
->
outputMixObject
);
(
*
p_sys
->
outputMixObject
)
->
Destroy
(
p_sys
->
outputMixObject
);
// destroy engine object, and invalidate all associated interfaces
if
(
p_sys
->
engineObject
!=
NULL
)
(
*
p_sys
->
engineObject
)
->
Destroy
(
p_sys
->
engineObject
);
(
*
p_sys
->
engineObject
)
->
Destroy
(
p_sys
->
engineObject
);
if
(
p_sys
->
p_so_handle
!=
NULL
)
dlclose
(
p_sys
->
p_so_handle
);
dlclose
(
p_sys
->
p_so_handle
);
free
(
p_sys
);
}
...
...
@@ -276,8 +272,7 @@ static void Close( vlc_object_t *p_this )
(
*
p_sys
->
playerPlay
)
->
SetPlayState
(
p_sys
->
playerPlay
,
SL_PLAYSTATE_STOPPED
);
//Flush remaining buffers if any.
if
(
p_sys
->
playerBufferQueue
!=
NULL
)
(
*
p_sys
->
playerBufferQueue
)
->
Clear
(
p_sys
->
playerBufferQueue
);
(
*
p_sys
->
playerBufferQueue
)
->
Clear
(
p_sys
->
playerBufferQueue
);
Clear
(
p_sys
);
}
...
...
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