Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
77befcec
Commit
77befcec
authored
Feb 21, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autodel: fix format copy
parent
63305f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
modules/stream_out/autodel.c
modules/stream_out/autodel.c
+8
-5
No files found.
modules/stream_out/autodel.c
View file @
77befcec
...
...
@@ -115,8 +115,11 @@ static sout_stream_id_sys_t * Add( sout_stream_t *p_stream, es_format_t *p_fmt )
{
sout_stream_sys_t
*
p_sys
=
(
sout_stream_sys_t
*
)
p_stream
->
p_sys
;
sout_stream_id_sys_t
*
p_es
=
malloc
(
sizeof
(
sout_stream_id_sys_t
)
);
if
(
unlikely
(
p_es
==
NULL
)
)
return
NULL
;
es_format_Copy
(
&
p_es
->
fmt
,
p_fmt
);
p_es
->
fmt
=
*
p_fmt
;
p_es
->
id
=
NULL
;
p_es
->
i_last
=
VLC_TS_INVALID
;
p_es
->
b_error
=
false
;
...
...
@@ -128,13 +131,13 @@ static sout_stream_id_sys_t * Add( sout_stream_t *p_stream, es_format_t *p_fmt )
static
void
Del
(
sout_stream_t
*
p_stream
,
sout_stream_id_sys_t
*
p_es
)
{
sout_stream_sys_t
*
p_sys
=
(
sout_stream_sys_t
*
)
p_stream
->
p_sys
;
sout_stream_id_sys_t
*
id
=
p_es
->
id
;
if
(
p_es
->
id
!=
NULL
)
sout_StreamIdDel
(
p_stream
->
p_next
,
p_es
->
id
);
TAB_REMOVE
(
p_sys
->
i_es_num
,
p_sys
->
pp_es
,
p_es
);
es_format_Clean
(
&
p_es
->
fmt
);
free
(
p_es
);
if
(
id
!=
NULL
)
p_stream
->
p_next
->
pf_del
(
p_stream
->
p_next
,
id
);
}
static
int
Send
(
sout_stream_t
*
p_stream
,
sout_stream_id_sys_t
*
p_es
,
...
...
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