Commit b3127daf authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: work-around a racing condition (close #6412)

(cherry picked from commit 6cbf48f1f9c38c1a0ed91fb6699f977b3b7f97ea)
parent 610e71f1
...@@ -98,6 +98,8 @@ ...@@ -98,6 +98,8 @@
VLCInfoTreeItem * rootItem; VLCInfoTreeItem * rootItem;
input_item_t * p_item; input_item_t * p_item;
BOOL b_awakeFromNib;
} }
- (void)initPanel; - (void)initPanel;
......
...@@ -121,6 +121,8 @@ static VLCInfo *_o_sharedInstance = nil; ...@@ -121,6 +121,8 @@ static VLCInfo *_o_sharedInstance = nil;
[o_info_window setInitialFirstResponder: o_uri_txt]; [o_info_window setInitialFirstResponder: o_uri_txt];
[o_info_window setDelegate: self]; [o_info_window setDelegate: self];
b_awakeFromNib = YES;
/* We may be awoken from nib way after initialisation /* We may be awoken from nib way after initialisation
* Update ourselves */ * Update ourselves */
[self updatePanelWithItem:p_item]; [self updatePanelWithItem:p_item];
...@@ -278,6 +280,9 @@ static VLCInfo *_o_sharedInstance = nil; ...@@ -278,6 +280,9 @@ static VLCInfo *_o_sharedInstance = nil;
- (void)updateStatistics - (void)updateStatistics
{ {
if (!b_awakeFromNib)
return;
if ([o_info_window isVisible]) if ([o_info_window isVisible])
{ {
if( !p_item || !p_item->p_stats ) if( !p_item || !p_item->p_stats )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment