[vlc-commits] commit: rtp: use VLC_TS_INVALID (Pierre Ynard )
git at videolan.org
git at videolan.org
Sun Nov 14 05:11:33 CET 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Nov 14 05:11:12 2010 +0100| [349f269051e7d7c5a20b8db61b0fb9f7e4b20151] | committer: Pierre Ynard
rtp: use VLC_TS_INVALID
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=349f269051e7d7c5a20b8db61b0fb9f7e4b20151
---
modules/access/rtp/rtp.c | 2 +-
modules/access/rtp/session.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index 55e8dd7..3cf48eb 100644
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -423,7 +423,7 @@ static void codec_decode (demux_t *demux, void *data, block_t *block)
{
if (data)
{
- block->i_dts = 0; /* RTP does not specify this */
+ block->i_dts = VLC_TS_INVALID; /* RTP does not specify this */
es_out_Control (demux->out, ES_OUT_SET_PCR, block->i_pts );
es_out_Send (demux->out, (es_out_id_t *)data, block);
}
diff --git a/modules/access/rtp/session.c b/modules/access/rtp/session.c
index a9df4f1..7fb52dc 100644
--- a/modules/access/rtp/session.c
+++ b/modules/access/rtp/session.c
@@ -168,7 +168,7 @@ rtp_source_create (demux_t *demux, const rtp_session_t *session,
source->ssrc = ssrc;
source->jitter = 0;
source->ref_rtp = 0;
- /* TODO: use 0, but VLC does not like negative PTS at the moment */
+ /* TODO: use VLC_TS_0, but VLC does not like negative PTS at the moment */
source->ref_ntp = UINT64_C (1) << 62;
source->max_seq = source->bad_seq = init_seq;
source->last_seq = init_seq - 1;
More information about the vlc-commits
mailing list