[vlc-commits] libvlc: add late frames to the media statistics

Steve Lhomme git at videolan.org
Thu Aug 13 14:07:50 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 10 07:40:35 2020 +0200| [bdcc427549a47d50799319d751fabd64e5dbb5e8] | committer: Steve Lhomme

libvlc: add late frames to the media statistics

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bdcc427549a47d50799319d751fabd64e5dbb5e8
---

 include/vlc/libvlc_media.h | 1 +
 lib/media.c                | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
index 31e7c0d92f..23946f0b16 100644
--- a/include/vlc/libvlc_media.h
+++ b/include/vlc/libvlc_media.h
@@ -122,6 +122,7 @@ typedef struct libvlc_media_stats_t
 
     /* Video Output */
     int         i_displayed_pictures;
+    int         i_late_pictures;
     int         i_lost_pictures;
 
     /* Audio output */
diff --git a/lib/media.c b/lib/media.c
index fd7405a7f8..e4c0909c16 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -761,6 +761,7 @@ bool libvlc_media_get_stats(libvlc_media_t *p_md,
     p_stats->i_decoded_audio = p_itm_stats->i_decoded_audio;
 
     p_stats->i_displayed_pictures = p_itm_stats->i_displayed_pictures;
+    p_stats->i_late_pictures = p_itm_stats->i_late_pictures;
     p_stats->i_lost_pictures = p_itm_stats->i_lost_pictures;
 
     p_stats->i_played_abuffers = p_itm_stats->i_played_abuffers;



More information about the vlc-commits mailing list