Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
314f2f94
Commit
314f2f94
authored
Oct 08, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify/fix checks enabling the use of pcr for seeking/positioning in the TS demuxer.
parent
cb5f74d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/demux/ts.c
modules/demux/ts.c
+2
-4
No files found.
modules/demux/ts.c
View file @
314f2f94
...
...
@@ -1200,7 +1200,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if
(
p_sys
->
b_force_seek_per_percent
||
(
p_sys
->
b_dvb_meta
&&
p_sys
->
b_access_control
)
||
p_sys
->
i_first_pcr
<
0
||
p_sys
->
i_current_pcr
-
p_sys
->
i_first_pcr
<
0
||
p_sys
->
i_last_pcr
-
p_sys
->
i_first_pcr
<=
0
)
{
...
...
@@ -1223,7 +1222,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if
(
p_sys
->
b_force_seek_per_percent
||
(
p_sys
->
b_dvb_meta
&&
p_sys
->
b_access_control
)
||
p_sys
->
i_first_pcr
<
0
||
p_sys
->
i_last_pcr
-
p_sys
->
i_first_pcr
<=
0
)
{
i64
=
stream_Size
(
p_demux
->
s
);
...
...
@@ -1243,7 +1241,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_GET_TIME
:
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
if
(
(
p_sys
->
b_dvb_meta
&&
p_sys
->
b_access_control
)
||
p_sys
->
i_first_pcr
<
0
||
p_sys
->
b_force_seek_per_percent
||
p_sys
->
i_current_pcr
-
p_sys
->
i_first_pcr
<
0
)
{
if
(
DVBEventInformation
(
p_demux
,
pi64
,
NULL
)
)
...
...
@@ -1260,7 +1258,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_GET_LENGTH
:
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
if
(
(
p_sys
->
b_dvb_meta
&&
p_sys
->
b_access_control
)
||
p_sys
->
i_first_pcr
<
0
||
p_sys
->
b_force_seek_per_percent
||
p_sys
->
i_last_pcr
-
p_sys
->
i_first_pcr
<=
0
)
{
if
(
DVBEventInformation
(
p_demux
,
NULL
,
pi64
)
)
...
...
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