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
723a1c36
Commit
723a1c36
authored
Dec 30, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ogg: better track of es state
parent
d706c1aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
modules/demux/ogg.c
modules/demux/ogg.c
+4
-9
modules/demux/ogg.h
modules/demux/ogg.h
+1
-0
No files found.
modules/demux/ogg.c
View file @
723a1c36
...
...
@@ -291,16 +291,10 @@ static int Demux( demux_t * p_demux )
}
}
if
(
p_sys
->
b_preparsing_done
)
if
(
p_sys
->
b_preparsing_done
&&
!
p_sys
->
b_es_created
)
{
for
(
int
i
=
0
;
i
<
p_sys
->
i_streams
;
i
++
)
{
if
(
!
p_sys
->
pp_stream
[
i
]
->
p_es
)
{
Ogg_CreateES
(
p_demux
);
break
;
}
}
Ogg_CreateES
(
p_demux
);
p_sys
->
b_es_created
=
true
;
}
/*
...
...
@@ -1944,6 +1938,7 @@ static void Ogg_EndOfStream( demux_t *p_demux )
p_ogg
->
skeleton
.
major
=
0
;
p_ogg
->
skeleton
.
minor
=
0
;
p_ogg
->
b_preparsing_done
=
false
;
p_ogg
->
b_es_created
=
false
;
p_ogg
->
i_pcr_offset
=
p_ogg
->
i_pcr
;
/* */
...
...
modules/demux/ogg.h
View file @
723a1c36
...
...
@@ -173,6 +173,7 @@ struct demux_sys_t
/* preparsing info */
bool
b_preparsing_done
;
bool
b_es_created
;
/* Length, if available. */
int64_t
i_length
;
...
...
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