[vlc-devel] [PATCH 6/6] macosx/guid: display the number of late frames
Steve Lhomme
robux4 at ycbcr.xyz
Mon Aug 10 07:48:52 CEST 2020
---
modules/gui/macosx/UI/VLCInformationWindow.xib | 1 +
modules/gui/macosx/panels/VLCInformationWindowController.h | 1 +
modules/gui/macosx/panels/VLCInformationWindowController.m | 2 ++
modules/gui/macosx/playlist/VLCPlayerController.h | 1 +
modules/gui/macosx/playlist/VLCPlayerController.m | 1 +
5 files changed, 6 insertions(+)
diff --git a/modules/gui/macosx/UI/VLCInformationWindow.xib b/modules/gui/macosx/UI/VLCInformationWindow.xib
index f3e9e89ec06..f02d6ba8e0c 100644
--- a/modules/gui/macosx/UI/VLCInformationWindow.xib
+++ b/modules/gui/macosx/UI/VLCInformationWindow.xib
@@ -38,6 +38,7 @@
<outlet property="directorTextField" destination="KiB-XA-gnh" id="ERL-sw-M61"/>
<outlet property="displayedLabel" destination="557" id="712"/>
<outlet property="displayedTextField" destination="558" id="713"/>
+ <outlet property="lateTextField" destination="561" id="729"/>
<outlet property="encodedbyLabel" destination="505" id="660"/>
<outlet property="encodedbyTextField" destination="504" id="661"/>
<outlet property="episodeLabel" destination="32r-kK-YIK" id="yix-cN-AcT"/>
diff --git a/modules/gui/macosx/panels/VLCInformationWindowController.h b/modules/gui/macosx/panels/VLCInformationWindowController.h
index b270c89ce39..83d3ac52ce1 100644
--- a/modules/gui/macosx/panels/VLCInformationWindowController.h
+++ b/modules/gui/macosx/panels/VLCInformationWindowController.h
@@ -84,6 +84,7 @@
@property (readwrite, weak) IBOutlet NSTextField *videoDecodedTextField;
@property (readwrite, weak) IBOutlet NSTextField *displayedLabel;
@property (readwrite, weak) IBOutlet NSTextField *displayedTextField;
+ at property (readwrite, weak) IBOutlet NSTextField *lateTextField;
@property (readwrite, weak) IBOutlet NSTextField *lostFramesLabel;
@property (readwrite, weak) IBOutlet NSTextField *lostFramesTextField;
@property (readwrite, weak) IBOutlet NSTextField *inputLabel;
diff --git a/modules/gui/macosx/panels/VLCInformationWindowController.m b/modules/gui/macosx/panels/VLCInformationWindowController.m
index 6f2808749b5..4bbb9b5cd17 100644
--- a/modules/gui/macosx/panels/VLCInformationWindowController.m
+++ b/modules/gui/macosx/panels/VLCInformationWindowController.m
@@ -206,6 +206,7 @@
//Initializing Video Variables
[_videoDecodedTextField setIntValue:0];
[_displayedTextField setIntValue:0];
+ [_lateTextField setIntValue:0];
[_lostFramesTextField setIntValue:0];
//Initializing Audio Variables
@@ -264,6 +265,7 @@
/* Video */
[_videoDecodedTextField setIntegerValue: inputStats.decodedVideo];
[_displayedTextField setIntegerValue: inputStats.displayedPictures];
+ [_lateTextField setIntegerValue: inputStats.latePictures];
[_lostFramesTextField setIntegerValue: inputStats.lostPictures];
/* Audio */
diff --git a/modules/gui/macosx/playlist/VLCPlayerController.h b/modules/gui/macosx/playlist/VLCPlayerController.h
index 77e3192ff03..84a4fae0e6c 100644
--- a/modules/gui/macosx/playlist/VLCPlayerController.h
+++ b/modules/gui/macosx/playlist/VLCPlayerController.h
@@ -893,6 +893,7 @@ extern const CGFloat VLCVolumeDefault;
/* Vout */
@property (readonly) int64_t displayedPictures;
+ at property (readonly) int64_t latePictures;
@property (readonly) int64_t lostPictures;
/* Aout */
diff --git a/modules/gui/macosx/playlist/VLCPlayerController.m b/modules/gui/macosx/playlist/VLCPlayerController.m
index 1698f9b36f3..f08d100c0da 100644
--- a/modules/gui/macosx/playlist/VLCPlayerController.m
+++ b/modules/gui/macosx/playlist/VLCPlayerController.m
@@ -1744,6 +1744,7 @@ static int BossCallback(vlc_object_t *p_this,
_decodedVideo = p_stats->i_decoded_video;
_displayedPictures = p_stats->i_displayed_pictures;
+ _latePictures = p_stats->i_late_pictures;
_lostPictures = p_stats->i_lost_pictures;
_playedAudioBuffers = p_stats->i_played_abuffers;
--
2.26.2
More information about the vlc-devel
mailing list