Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e3851516
Commit
e3851516
authored
Dec 08, 2009
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mux_ogg: clearly initialize variables
parent
557bc597
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
modules/mux/ogg.c
modules/mux/ogg.c
+5
-7
No files found.
modules/mux/ogg.c
View file @
e3851516
...
...
@@ -132,10 +132,10 @@ typedef struct
*/
static
int
MuxGetStream
(
sout_mux_t
*
p_mux
,
int
*
pi_stream
,
mtime_t
*
pi_dts
)
{
mtime_t
i_dts
;
int
i_stream
,
i
;
mtime_t
i_dts
=
0
;
int
i_stream
=
-
1
;
for
(
i
=
0
,
i_dts
=
0
,
i_stream
=
-
1
;
i
<
p_mux
->
i_nb_inputs
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
p_mux
->
i_nb_inputs
;
i
++
)
{
block_fifo_t
*
p_fifo
;
...
...
@@ -253,17 +253,15 @@ static void Close( vlc_object_t * p_this )
if
(
p_sys
->
i_del_streams
)
{
block_t
*
p_og
=
NULL
;
mtime_t
i_dts
=
-
1
;
int
i
;
mtime_t
i_dts
=
p_sys
->
pp_del_streams
[
p_sys
->
i_del_streams
-
1
]
->
i_dts
;
/* Close the current ogg stream */
msg_Dbg
(
p_mux
,
"writing footer"
);
block_ChainAppend
(
&
p_og
,
OggCreateFooter
(
p_mux
)
);
/* Remove deleted logical streams */
for
(
i
=
0
;
i
<
p_sys
->
i_del_streams
;
i
++
)
for
(
int
i
=
0
;
i
<
p_sys
->
i_del_streams
;
i
++
)
{
i_dts
=
p_sys
->
pp_del_streams
[
i
]
->
i_dts
;
ogg_stream_clear
(
&
p_sys
->
pp_del_streams
[
i
]
->
os
);
FREENULL
(
p_sys
->
pp_del_streams
[
i
]
->
p_oggds_header
);
FREENULL
(
p_sys
->
pp_del_streams
[
i
]
);
...
...
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