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
c23258ff
Commit
c23258ff
authored
Aug 27, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: delete stream from demux_Delete() (refs #8455)
parent
33779198
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
src/input/demux.c
src/input/demux.c
+5
-1
src/input/input.c
src/input/input.c
+1
-6
src/input/stream_demux.c
src/input/stream_demux.c
+3
-0
No files found.
src/input/demux.c
View file @
c23258ff
...
@@ -213,14 +213,18 @@ demux_t *demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
...
@@ -213,14 +213,18 @@ demux_t *demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
*****************************************************************************/
*****************************************************************************/
void
demux_Delete
(
demux_t
*
p_demux
)
void
demux_Delete
(
demux_t
*
p_demux
)
{
{
module_unneed
(
p_demux
,
p_demux
->
p_module
)
;
stream_t
*
s
;
module_unneed
(
p_demux
,
p_demux
->
p_module
);
free
(
p_demux
->
psz_file
);
free
(
p_demux
->
psz_file
);
free
(
p_demux
->
psz_location
);
free
(
p_demux
->
psz_location
);
free
(
p_demux
->
psz_demux
);
free
(
p_demux
->
psz_demux
);
free
(
p_demux
->
psz_access
);
free
(
p_demux
->
psz_access
);
s
=
p_demux
->
s
;
vlc_object_release
(
p_demux
);
vlc_object_release
(
p_demux
);
if
(
s
!=
NULL
)
stream_Delete
(
s
);
}
}
/*****************************************************************************
/*****************************************************************************
...
...
src/input/input.c
View file @
c23258ff
...
@@ -2426,6 +2426,7 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -2426,6 +2426,7 @@ static int InputSourceInit( input_thread_t *p_input,
if
(
in
->
p_demux
==
NULL
)
if
(
in
->
p_demux
==
NULL
)
{
{
stream_Delete
(
in
->
p_stream
);
if
(
vlc_object_alive
(
p_input
)
)
if
(
vlc_object_alive
(
p_input
)
)
{
{
msg_Err
(
p_input
,
"no suitable demux module for `%s/%s://%s'"
,
msg_Err
(
p_input
,
"no suitable demux module for `%s/%s://%s'"
,
...
@@ -2513,9 +2514,6 @@ error:
...
@@ -2513,9 +2514,6 @@ error:
if
(
in
->
p_demux
)
if
(
in
->
p_demux
)
demux_Delete
(
in
->
p_demux
);
demux_Delete
(
in
->
p_demux
);
if
(
in
->
p_stream
)
stream_Delete
(
in
->
p_stream
);
free
(
psz_var_demux
);
free
(
psz_var_demux
);
free
(
psz_dup
);
free
(
psz_dup
);
...
@@ -2532,9 +2530,6 @@ static void InputSourceClean( input_source_t *in )
...
@@ -2532,9 +2530,6 @@ static void InputSourceClean( input_source_t *in )
if
(
in
->
p_demux
)
if
(
in
->
p_demux
)
demux_Delete
(
in
->
p_demux
);
demux_Delete
(
in
->
p_demux
);
if
(
in
->
p_stream
)
stream_Delete
(
in
->
p_stream
);
if
(
in
->
i_title
>
0
)
if
(
in
->
i_title
>
0
)
{
{
for
(
i
=
0
;
i
<
in
->
i_title
;
i
++
)
for
(
i
=
0
;
i
<
in
->
i_title
;
i
++
)
...
...
src/input/stream_demux.c
View file @
c23258ff
...
@@ -363,6 +363,9 @@ static void* DStreamThread( void *obj )
...
@@ -363,6 +363,9 @@ static void* DStreamThread( void *obj )
break
;
break
;
}
}
/* Explicit kludge: the stream is destroyed by the owner of the
* streamDemux, not here. */
p_demux
->
s
=
NULL
;
demux_Delete
(
p_demux
);
demux_Delete
(
p_demux
);
return
NULL
;
return
NULL
;
...
...
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