[vlc-devel] [PATCH 2/6] libvlc: add late frames to the media statistics

Steve Lhomme robux4 at ycbcr.xyz
Mon Aug 10 07:48:48 CEST 2020


---
 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 31e7c0d92f8..23946f0b16a 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 fd7405a7f84..e4c0909c165 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;
-- 
2.26.2



More information about the vlc-devel mailing list