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
a4bcd514
Commit
a4bcd514
authored
May 20, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to check for a NULL as libvlc_media_release is checking.
parent
02e878a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
src/control/media_list.c
src/control/media_list.c
+2
-4
src/control/media_player.c
src/control/media_player.c
+1
-2
No files found.
src/control/media_list.c
View file @
a4bcd514
...
...
@@ -201,8 +201,7 @@ void libvlc_media_list_release( libvlc_media_list_t * p_mlist )
libvlc_event_manager_release
(
p_mlist
->
p_event_manager
);
if
(
p_mlist
->
p_md
)
libvlc_media_release
(
p_mlist
->
p_md
);
libvlc_media_release
(
p_mlist
->
p_md
);
for
(
i
=
0
;
i
<
vlc_array_count
(
&
p_mlist
->
items
);
i
++
)
{
...
...
@@ -279,8 +278,7 @@ void libvlc_media_list_set_media( libvlc_media_list_t * p_mlist,
{
VLC_UNUSED
(
p_e
);
vlc_mutex_lock
(
&
p_mlist
->
object_lock
);
if
(
p_mlist
->
p_md
)
libvlc_media_release
(
p_mlist
->
p_md
);
libvlc_media_release
(
p_mlist
->
p_md
);
libvlc_media_retain
(
p_md
);
p_mlist
->
p_md
=
p_md
;
vlc_mutex_unlock
(
&
p_mlist
->
object_lock
);
...
...
src/control/media_player.c
View file @
a4bcd514
...
...
@@ -391,8 +391,7 @@ static void libvlc_media_player_destroy( libvlc_media_player_t *p_mi )
release_input_thread
(
p_mi
,
true
);
libvlc_event_manager_release
(
p_mi
->
p_event_manager
);
if
(
p_mi
->
p_md
)
libvlc_media_release
(
p_mi
->
p_md
);
libvlc_media_release
(
p_mi
->
p_md
);
vlc_mutex_destroy
(
&
p_mi
->
object_lock
);
free
(
p_mi
);
}
...
...
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