[vlc-devel] commit: decoder stats: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )
git version control
git at videolan.org
Mon Dec 7 18:21:58 CET 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec 7 18:21:46 2009 +0100| [9a9a5f4a681e4830f30a391d34513a045232f297] | committer: Rafaël Carré
decoder stats: use VLC_TS_INVALID (refs #3135)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a9a5f4a681e4830f30a391d34513a045232f297
---
modules/misc/stats/decoder.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/misc/stats/decoder.c b/modules/misc/stats/decoder.c
index 80899db..f981dd2 100644
--- a/modules/misc/stats/decoder.c
+++ b/modules/misc/stats/decoder.c
@@ -88,7 +88,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
*(mtime_t *)(p_pic->p->p_pixels) = mdate();
}
- p_pic->date = p_block->i_pts ? p_block->i_pts : p_block->i_dts;
+ p_pic->date = p_block->i_pts > VLC_TS_INVALID ?
+ p_block->i_pts : p_block->i_dts;
p_pic->b_force = true;
block_Release( p_block );
More information about the vlc-devel
mailing list