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
a408beac
Commit
a408beac
authored
Oct 10, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed invalid/useless usage of ES_OUT_RESET_PCR.
parent
42693233
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
6 additions
and
33 deletions
+6
-33
include/vlc_es_out.h
include/vlc_es_out.h
+2
-3
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+0
-3
modules/demux/gme.cpp
modules/demux/gme.cpp
+0
-2
modules/demux/live555.cpp
modules/demux/live555.cpp
+0
-2
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+2
-6
modules/demux/mod.c
modules/demux/mod.c
+0
-2
modules/demux/nsv.c
modules/demux/nsv.c
+1
-3
modules/demux/ps.c
modules/demux/ps.c
+0
-2
modules/demux/pva.c
modules/demux/pva.c
+0
-1
modules/demux/real.c
modules/demux/real.c
+0
-4
modules/demux/ts.c
modules/demux/ts.c
+1
-3
modules/demux/tta.c
modules/demux/tta.c
+0
-1
modules/demux/ty.c
modules/demux/ty.c
+0
-1
No files found.
include/vlc_es_out.h
View file @
a408beac
...
@@ -71,9 +71,8 @@ enum es_out_query_e
...
@@ -71,9 +71,8 @@ enum es_out_query_e
/* PCR handling, DTS/PTS will be automatically computed using thoses PCR
/* PCR handling, DTS/PTS will be automatically computed using thoses PCR
* XXX: SET_PCR(_GROUP) are in charge of the pace control. They will wait
* XXX: SET_PCR(_GROUP) are in charge of the pace control. They will wait
* to slow down the demuxer so that it reads at the right speed.
* to slow down the demuxer so that it reads at the right speed.
* XXX: if you want PREROLL just call RESET_PCR and
* XXX: if you want PREROLL just call ES_OUT_SET_NEXT_DISPLAY_TIME and send$
* ES_OUT_SET_NEXT_DISPLAY_TIME and send data to the decoder *without*
* as you would normally do.
* calling SET_PCR until preroll is finished.
*/
*/
ES_OUT_SET_PCR
,
/* arg1=int64_t i_pcr(microsecond!) (using default group 0)*/
ES_OUT_SET_PCR
,
/* arg1=int64_t i_pcr(microsecond!) (using default group 0)*/
ES_OUT_SET_GROUP_PCR
,
/* arg1= int i_group, arg2=int64_t i_pcr(microsecond!)*/
ES_OUT_SET_GROUP_PCR
,
/* arg1= int i_group, arg2=int64_t i_pcr(microsecond!)*/
...
...
modules/demux/avformat/demux.c
View file @
a408beac
...
@@ -509,7 +509,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -509,7 +509,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
UpdateSeekPoint
(
p_demux
,
i64
);
UpdateSeekPoint
(
p_demux
,
i64
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
p_sys
->
i_pcr
=
-
1
;
/* Invalidate time display */
p_sys
->
i_pcr
=
-
1
;
/* Invalidate time display */
}
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
@@ -540,7 +539,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -540,7 +539,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
{
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
p_sys
->
i_pcr
=
-
1
;
/* Invalidate time display */
p_sys
->
i_pcr
=
-
1
;
/* Invalidate time display */
UpdateSeekPoint
(
p_demux
,
i64
);
UpdateSeekPoint
(
p_demux
,
i64
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
@@ -626,7 +624,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -626,7 +624,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
{
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
p_sys
->
i_pcr
=
-
1
;
/* Invalidate time display */
p_sys
->
i_pcr
=
-
1
;
/* Invalidate time display */
UpdateSeekPoint
(
p_demux
,
i64
);
UpdateSeekPoint
(
p_demux
,
i64
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
modules/demux/gme.cpp
View file @
a408beac
...
@@ -420,7 +420,6 @@ switch( i_query )
...
@@ -420,7 +420,6 @@ switch( i_query )
{
{
ModPlug_Seek( p_sys->f, i64 / 1000 );
ModPlug_Seek( p_sys->f, i64 / 1000 );
p_sys->i_time = i64 + 1;
p_sys->i_time = i64 + 1;
es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
return VLC_SUCCESS;
return VLC_SUCCESS;
}
}
...
@@ -443,7 +442,6 @@ switch( i_query )
...
@@ -443,7 +442,6 @@ switch( i_query )
{
{
ModPlug_Seek( p_sys->f, i64 / 1000 );
ModPlug_Seek( p_sys->f, i64 / 1000 );
p_sys->i_time = i64 + 1;
p_sys->i_time = i64 + 1;
es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
return VLC_SUCCESS;
return VLC_SUCCESS;
}
}
...
...
modules/demux/live555.cpp
View file @
a408beac
...
@@ -1252,7 +1252,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -1252,7 +1252,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
p_sys
->
env
->
getResultMsg
()
);
p_sys
->
env
->
getResultMsg
()
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
p_sys
->
i_pcr
=
0
;
p_sys
->
i_pcr
=
0
;
/* Retrieve RTP-Info values */
/* Retrieve RTP-Info values */
...
@@ -1338,7 +1337,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -1338,7 +1337,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
p_sys->i_npt_start = 0;
p_sys->i_npt_start = 0;
p_sys->i_pcr = 0;
p_sys->i_pcr = 0;
p_sys->i_npt = 0.;
p_sys->i_npt = 0.;
es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
*pi_int = (int)( INPUT_RATE_DEFAULT / p_sys->ms->scale() + 0.5 );
*pi_int = (int)( INPUT_RATE_DEFAULT / p_sys->ms->scale() + 0.5 );
return VLC_SUCCESS;
return VLC_SUCCESS;
...
...
modules/demux/mkv/mkv.cpp
View file @
a408beac
...
@@ -649,7 +649,6 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
...
@@ -649,7 +649,6 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
{
{
ParseCluster
();
ParseCluster
();
msg_Dbg
(
&
sys
.
demuxer
,
"we found a cluster that is in the neighbourhood"
);
msg_Dbg
(
&
sys
.
demuxer
,
"we found a cluster that is in the neighbourhood"
);
es_out_Control
(
sys
.
demuxer
.
out
,
ES_OUT_RESET_PCR
);
return
;
return
;
}
}
}
}
...
@@ -690,8 +689,6 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
...
@@ -690,8 +689,6 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
sys
.
i_start_pts
=
i_date
;
sys
.
i_start_pts
=
i_date
;
es_out_Control
(
sys
.
demuxer
.
out
,
ES_OUT_RESET_PCR
);
/* now parse until key frame */
/* now parse until key frame */
i_track_skipping
=
0
;
i_track_skipping
=
0
;
for
(
i_track
=
0
;
i_track
<
tracks
.
size
();
i_track
++
)
for
(
i_track
=
0
;
i_track
<
tracks
.
size
();
i_track
++
)
...
@@ -744,7 +741,6 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
...
@@ -744,7 +741,6 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
}
}
if
(
!
tracks
[
i_track
]
->
b_search_keyframe
)
if
(
!
tracks
[
i_track
]
->
b_search_keyframe
)
{
{
//es_out_Control( sys.demuxer.out, ES_OUT_SET_PCR, sys.i_pts );
BlockDecode
(
&
sys
.
demuxer
,
block
,
simpleblock
,
sys
.
i_pts
,
0
,
i_block_ref1
>=
0
||
i_block_ref2
>
0
);
BlockDecode
(
&
sys
.
demuxer
,
block
,
simpleblock
,
sys
.
i_pts
,
0
,
i_block_ref1
>=
0
||
i_block_ref2
>
0
);
}
}
}
}
...
@@ -865,10 +861,10 @@ static int Demux( demux_t *p_demux)
...
@@ -865,10 +861,10 @@ static int Demux( demux_t *p_demux)
else
else
p_sys
->
i_pts
=
(
p_sys
->
i_chapter_time
+
block
->
GlobalTimecode
())
/
(
mtime_t
)
1000
;
p_sys
->
i_pts
=
(
p_sys
->
i_chapter_time
+
block
->
GlobalTimecode
())
/
(
mtime_t
)
1000
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_pts
);
if
(
p_sys
->
i_pts
>=
p_sys
->
i_start_pts
)
if
(
p_sys
->
i_pts
>=
p_sys
->
i_start_pts
)
{
{
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_pts
);
if
(
p_vsegment
->
UpdateCurrentToChapter
(
*
p_demux
)
)
if
(
p_vsegment
->
UpdateCurrentToChapter
(
*
p_demux
)
)
{
{
i_return
=
1
;
i_return
=
1
;
...
...
modules/demux/mod.c
View file @
a408beac
...
@@ -327,7 +327,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -327,7 +327,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
{
ModPlug_Seek
(
p_sys
->
f
,
i64
/
1000
);
ModPlug_Seek
(
p_sys
->
f
,
i64
/
1000
);
p_sys
->
i_time
=
i64
+
1
;
p_sys
->
i_time
=
i64
+
1
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -350,7 +349,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -350,7 +349,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
{
ModPlug_Seek
(
p_sys
->
f
,
i64
/
1000
);
ModPlug_Seek
(
p_sys
->
f
,
i64
/
1000
);
p_sys
->
i_time
=
i64
+
1
;
p_sys
->
i_time
=
i64
+
1
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
modules/demux/nsv.c
View file @
a408beac
...
@@ -343,11 +343,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -343,11 +343,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
f
=
(
double
)
va_arg
(
args
,
double
);
f
=
(
double
)
va_arg
(
args
,
double
);
i64
=
stream_Size
(
p_demux
->
s
);
i64
=
stream_Size
(
p_demux
->
s
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
if
(
stream_Seek
(
p_demux
->
s
,
(
int64_t
)(
i64
*
f
)
)
||
ReSynch
(
p_demux
)
)
if
(
stream_Seek
(
p_demux
->
s
,
(
int64_t
)(
i64
*
f
)
)
||
ReSynch
(
p_demux
)
)
{
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
p_sys
->
i_time
=
-
1
;
/* Invalidate time display */
p_sys
->
i_time
=
-
1
;
/* Invalidate time display */
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
modules/demux/ps.c
View file @
a408beac
...
@@ -449,7 +449,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -449,7 +449,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
f
=
(
double
)
va_arg
(
args
,
double
);
f
=
(
double
)
va_arg
(
args
,
double
);
i64
=
stream_Size
(
p_demux
->
s
);
i64
=
stream_Size
(
p_demux
->
s
);
p_sys
->
i_current_pts
=
0
;
p_sys
->
i_current_pts
=
0
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
return
stream_Seek
(
p_demux
->
s
,
(
int64_t
)(
i64
*
f
)
);
return
stream_Seek
(
p_demux
->
s
,
(
int64_t
)(
i64
*
f
)
);
...
@@ -494,7 +493,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -494,7 +493,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
int64_t
i_offset
=
i_pos
/
(
i_now
/
1000000
)
*
((
i64
-
i_now
)
/
1000000
);
int64_t
i_offset
=
i_pos
/
(
i_now
/
1000000
)
*
((
i64
-
i_now
)
/
1000000
);
stream_Seek
(
p_demux
->
s
,
i_pos
+
i_offset
);
stream_Seek
(
p_demux
->
s
,
i_pos
+
i_offset
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
modules/demux/pva.c
View file @
a408beac
...
@@ -294,7 +294,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -294,7 +294,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
f
=
(
double
)
va_arg
(
args
,
double
);
f
=
(
double
)
va_arg
(
args
,
double
);
i64
=
stream_Size
(
p_demux
->
s
);
i64
=
stream_Size
(
p_demux
->
s
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
if
(
stream_Seek
(
p_demux
->
s
,
(
int64_t
)(
i64
*
f
)
)
||
ReSynch
(
p_demux
)
)
if
(
stream_Seek
(
p_demux
->
s
,
(
int64_t
)(
i64
*
f
)
)
||
ReSynch
(
p_demux
)
)
{
{
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
modules/demux/real.c
View file @
a408beac
...
@@ -794,7 +794,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -794,7 +794,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
msg_Dbg
(
p_demux
,
"Seek in real rtsp stream!"
);
msg_Dbg
(
p_demux
,
"Seek in real rtsp stream!"
);
p_sys
->
i_pcr
=
(
int64_t
)
1000
*
(
p_sys
->
i_our_duration
*
f
);
p_sys
->
i_pcr
=
(
int64_t
)
1000
*
(
p_sys
->
i_our_duration
*
f
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
,
p_sys
->
i_pcr
);
p_sys
->
b_seek
=
1
;
p_sys
->
b_seek
=
1
;
return
stream_Seek
(
p_demux
->
s
,
p_sys
->
i_pcr
);
return
stream_Seek
(
p_demux
->
s
,
p_sys
->
i_pcr
);
...
@@ -819,8 +818,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -819,8 +818,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
p_sys
->
i_pcr
=
1000
*
(
int64_t
)
p_index
->
time_offset
;
p_sys
->
i_pcr
=
1000
*
(
int64_t
)
p_index
->
time_offset
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
,
p_sys
->
i_pcr
);
return
stream_Seek
(
p_demux
->
s
,
i64
);
return
stream_Seek
(
p_demux
->
s
,
i64
);
}
}
case
DEMUX_SET_TIME
:
case
DEMUX_SET_TIME
:
...
@@ -840,7 +837,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -840,7 +837,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
}
p_sys
->
i_pcr
=
1000
*
(
int64_t
)
p_index
->
time_offset
;
p_sys
->
i_pcr
=
1000
*
(
int64_t
)
p_index
->
time_offset
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
,
p_sys
->
i_pcr
);
return
stream_Seek
(
p_demux
->
s
,
i64
);
return
stream_Seek
(
p_demux
->
s
,
i64
);
...
...
modules/demux/ts.c
View file @
a408beac
...
@@ -1235,11 +1235,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -1235,11 +1235,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
f
=
(
double
)
va_arg
(
args
,
double
);
f
=
(
double
)
va_arg
(
args
,
double
);
i64
=
stream_Size
(
p_demux
->
s
);
i64
=
stream_Size
(
p_demux
->
s
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
if
(
stream_Seek
(
p_demux
->
s
,
(
int64_t
)(
i64
*
f
)
)
)
if
(
stream_Seek
(
p_demux
->
s
,
(
int64_t
)(
i64
*
f
)
)
)
{
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
#if 0
#if 0
...
...
modules/demux/tta.c
View file @
a408beac
...
@@ -236,7 +236,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -236,7 +236,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_SET_POSITION
:
case
DEMUX_SET_POSITION
:
f
=
(
double
)
va_arg
(
args
,
double
);
f
=
(
double
)
va_arg
(
args
,
double
);
i64
=
(
int64_t
)(
f
*
(
stream_Size
(
p_demux
->
s
)
-
p_sys
->
i_start
));
i64
=
(
int64_t
)(
f
*
(
stream_Size
(
p_demux
->
s
)
-
p_sys
->
i_start
));
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
if
(
i64
>
0
)
if
(
i64
>
0
)
{
{
int64_t
tmp
=
0
;
int64_t
tmp
=
0
;
...
...
modules/demux/ty.c
View file @
a408beac
...
@@ -1104,7 +1104,6 @@ static int ty_stream_seek_pct(demux_t *p_demux, double seek_pct)
...
@@ -1104,7 +1104,6 @@ static int ty_stream_seek_pct(demux_t *p_demux, double seek_pct)
/* to hell with syncing any audio or video, just start reading records... :) */
/* to hell with syncing any audio or video, just start reading records... :) */
/*p_sys->lastAudioPTS = p_sys->lastVideoPTS = 0;*/
/*p_sys->lastAudioPTS = p_sys->lastVideoPTS = 0;*/
es_out_Control
(
p_demux
->
out
,
ES_OUT_RESET_PCR
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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