Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
da99cadb
Commit
da99cadb
authored
Apr 08, 2008
by
maxime Ripard
Committed by
Felix Paul Kühne
Apr 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix Stats Panel
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
b744c467
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
modules/gui/macosx/playlistinfo.h
modules/gui/macosx/playlistinfo.h
+1
-0
modules/gui/macosx/playlistinfo.m
modules/gui/macosx/playlistinfo.m
+27
-0
No files found.
modules/gui/macosx/playlistinfo.h
View file @
da99cadb
...
...
@@ -101,6 +101,7 @@
-
(
void
)
initPanel
;
-
(
IBAction
)
metaFieldChanged
:(
id
)
sender
;
-
(
IBAction
)
saveMetaData
:(
id
)
sender
;
-
(
void
)
initMediaPanelStats
;
-
(
void
)
updatePanel
;
-
(
playlist_item_t
*
)
getItem
;
-
(
BOOL
)
isItemInPlaylist
:(
playlist_item_t
*
)
p_item
;
...
...
modules/gui/macosx/playlistinfo.m
View file @
da99cadb
...
...
@@ -127,6 +127,7 @@ static VLCInfo *_o_sharedInstance = nil;
-
(
void
)
initPanel
{
BOOL
b_stats
=
config_GetInt
(
VLCIntf
,
"stats"
);
[
self
initMediaPanelStats
];
if
(
b_stats
)
{
o_statUpdateTimer
=
[
NSTimer
scheduledTimerWithTimeInterval
:
1
...
...
@@ -145,6 +146,32 @@ static VLCInfo *_o_sharedInstance = nil;
[
o_info_window
makeKeyAndOrderFront
:
self
];
}
-
(
void
)
initMediaPanelStats
{
//Initializing Input Variables
[
o_read_bytes_txt
setStringValue
:
[
NSString
stringWithFormat
:
@"%8.0f kB"
,
(
float
)
0
]];
[
o_input_bitrate_txt
setStringValue
:
[
NSString
stringWithFormat
:
@"%6.0f kb/s"
,
(
float
)
0
]];
[
o_demux_bytes_txt
setStringValue
:
[
NSString
stringWithFormat
:
@"%8.0f kB"
,
(
float
)
0
]];
[
o_demux_bitrate_txt
setStringValue
:
[
NSString
stringWithFormat
:
@"%6.0f kb/s"
,
(
float
)
0
]];
//Initializing Video Variables
[
o_video_decoded_txt
setIntValue
:
0
];
[
o_displayed_txt
setIntValue
:
0
];
[
o_lost_frames_txt
setIntValue
:
0
];
[
o_fps_txt
setFloatValue
:
0
];
//Initializing Output Variables
[
o_sent_packets_txt
setIntValue
:
0
];
[
o_sent_bytes_txt
setStringValue
:
[
NSString
stringWithFormat
:
@"%8.0f kB"
,
(
float
)
0
]];
[
o_sent_bitrate_txt
setStringValue
:
[
NSString
stringWithFormat
:
@"%6.0f kb/s"
,
(
float
)
0
]];
//Initializing Audio Variables
[
o_audio_decoded_txt
setIntValue
:
0
];
[
o_played_abuffers_txt
setIntValue
:
0
];
[
o_lost_abuffers_txt
setIntValue
:
0
];
}
-
(
void
)
updatePanel
{
/* make sure that we got the current item and not an outdated one */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment