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
f16fd300
Commit
f16fd300
authored
Jan 02, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ogg: add PCR gap handling warning
parent
e39d1a58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
modules/demux/ogg.c
modules/demux/ogg.c
+14
-0
modules/demux/ogg.h
modules/demux/ogg.h
+3
-0
No files found.
modules/demux/ogg.c
View file @
f16fd300
...
...
@@ -31,6 +31,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_access.h>
#include <vlc_demux.h>
#include <vlc_meta.h>
#include <vlc_input.h>
...
...
@@ -202,6 +203,8 @@ static int Open( vlc_object_t * p_this )
p_sys
->
i_length
=
-
1
;
p_sys
->
b_preparsing_done
=
false
;
stream_Control
(
p_demux
->
s
,
ACCESS_GET_PTS_DELAY
,
&
p_sys
->
i_access_delay
);
/* Set exported functions */
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
...
...
@@ -567,6 +570,17 @@ static int Demux( demux_t * p_demux )
if
(
i_pcr_candidate
>
VLC_TS_INVALID
&&
p_sys
->
i_pcr
!=
i_pcr_candidate
)
{
if
(
p_sys
->
i_streams
==
1
&&
p_sys
->
i_access_delay
)
{
int64_t
i_pcr_jitter
=
i_pcr_candidate
-
p_sys
->
i_pcr
;
if
(
i_pcr_jitter
>
p_sys
->
i_pcr_jitter
)
{
p_sys
->
i_pcr_jitter
=
i_pcr_jitter
;
if
(
p_sys
->
i_access_delay
<
i_pcr_jitter
)
msg_Warn
(
p_demux
,
"Consider increasing access caching variable from %"
PRId64
" to >%"
PRId64
,
p_sys
->
i_access_delay
/
1000
,
i_pcr_jitter
/
1000
);
}
}
p_sys
->
i_pcr
=
i_pcr_candidate
;
if
(
!
b_skipping
)
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_pcr
);
...
...
modules/demux/ogg.h
View file @
f16fd300
...
...
@@ -132,6 +132,9 @@ struct demux_sys_t
* the sub-streams */
mtime_t
i_pcr
;
mtime_t
i_pcr_offset
;
/* informative only */
mtime_t
i_pcr_jitter
;
int64_t
i_access_delay
;
/* new stream or starting from a chain */
bool
b_chained_boundary
;
...
...
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