Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a44da88b
Commit
a44da88b
authored
Nov 14, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix crash when displaying the Media Information panel with disabled local stats
parent
0397c9b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
modules/gui/macosx/playlistinfo.h
modules/gui/macosx/playlistinfo.h
+1
-0
modules/gui/macosx/playlistinfo.m
modules/gui/macosx/playlistinfo.m
+4
-3
No files found.
modules/gui/macosx/playlistinfo.h
View file @
a44da88b
...
...
@@ -100,6 +100,7 @@
input_item_t
*
p_item
;
BOOL
b_awakeFromNib
;
BOOL
b_stats
;
}
@property
(
readonly
)
input_item_t
*
item
;
...
...
modules/gui/macosx/playlistinfo.m
View file @
a44da88b
...
...
@@ -137,13 +137,14 @@ static VLCInfo *_o_sharedInstance = nil;
-
(
void
)
initPanel
{
BOOL
b_stats
=
config_GetInt
(
VLCIntf
,
"stats"
);
b_stats
=
config_GetInt
(
VLCIntf
,
"stats"
);
if
(
!
b_stats
)
{
if
(
[
o_tab_view
numberOfTabViewItems
]
>
2
)
[
o_tab_view
removeTabViewItem
:
[
o_tab_view
tabViewItemAtIndex
:
2
]];
}
else
[
self
initMediaPanelStats
];
[
self
initMediaPanelStats
];
[
o_info_window
makeKeyAndOrderFront
:
self
];
}
...
...
@@ -270,7 +271,7 @@ static VLCInfo *_o_sharedInstance = nil;
-
(
void
)
updateStatistics
{
if
(
!
b_awakeFromNib
)
if
(
!
b_awakeFromNib
||
!
b_stats
)
return
;
if
([
o_info_window
isVisible
])
{
...
...
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