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
a8712a37
Commit
a8712a37
authored
Jun 04, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sout leak if the playlist is gone
parent
49708746
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
src/input/input.c
src/input/input.c
+8
-9
No files found.
src/input/input.c
View file @
a8712a37
...
@@ -325,10 +325,7 @@ static void Destructor( input_thread_t * p_input )
...
@@ -325,10 +325,7 @@ static void Destructor( input_thread_t * p_input )
if
(
priv
->
b_sout_keep
)
if
(
priv
->
b_sout_keep
)
SoutKeep
(
priv
->
p_sout
);
SoutKeep
(
priv
->
p_sout
);
else
else
{
sout_DeleteInstance
(
priv
->
p_sout
);
sout_DeleteInstance
(
priv
->
p_sout
);
priv
->
p_sout
=
NULL
;
}
}
}
#endif
#endif
vlc_gc_decref
(
p_input
->
p
->
input
.
p_item
);
vlc_gc_decref
(
p_input
->
p
->
input
.
p_item
);
...
@@ -1454,12 +1451,14 @@ static void SoutKeep( sout_instance_t *p_sout )
...
@@ -1454,12 +1451,14 @@ static void SoutKeep( sout_instance_t *p_sout )
{
{
playlist_t
*
p_playlist
=
vlc_object_find
(
p_sout
,
VLC_OBJECT_PLAYLIST
,
playlist_t
*
p_playlist
=
vlc_object_find
(
p_sout
,
VLC_OBJECT_PLAYLIST
,
FIND_PARENT
);
FIND_PARENT
);
if
(
!
p_playlist
)
return
;
if
(
p_playlist
)
{
msg_Dbg
(
p_sout
,
"sout has been kept"
);
msg_Dbg
(
p_sout
,
"sout has been kept"
);
vlc_object_attach
(
p_sout
,
p_playlist
);
vlc_object_attach
(
p_sout
,
p_playlist
);
vlc_object_release
(
p_playlist
);
vlc_object_release
(
p_playlist
);
}
else
sout_DeleteInstance
(
p_sout
);
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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