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
f0dc54ba
Commit
f0dc54ba
authored
May 10, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mac OS X gui: Fix a crash when waking up from sleep.
parent
02c82b36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+26
-4
No files found.
modules/gui/macosx/playlist.m
View file @
f0dc54ba
...
...
@@ -237,15 +237,37 @@
{
id
o_value
=
nil
;
playlist_item_t
*
p_item
;
if
(
item
==
nil
||
!
[
item
isKindOfClass
:
[
NSValue
class
]]
)
return
(
@"error"
);
/* For error handling */
static
BOOL
attempted_reload
=
NO
;
if
(
item
==
nil
||
!
[
item
isKindOfClass
:
[
NSValue
class
]]
)
{
/* Attempt to fix the error by asking for a data redisplay
* This might cause infinite loop, so add a small check */
if
(
!
attempted_reload
)
{
attempted_reload
=
YES
;
[
outlineView
reloadData
];
}
return
@"error"
;
}
p_item
=
(
playlist_item_t
*
)[
item
pointerValue
];
if
(
p_item
==
NULL
)
if
(
!
p_item
||
!
p_item
->
p_input
)
{
return
(
@"error"
);
/* Attempt to fix the error by asking for a data redisplay
* This might cause infinite loop, so add a small check */
if
(
!
attempted_reload
)
{
attempted_reload
=
YES
;
[
outlineView
reloadData
];
}
return
@"error"
;
}
attempted_reload
=
NO
;
if
(
[[
o_tc
identifier
]
isEqualToString
:
@"1"
]
)
{
/* sanity check to prevent the NSString class from crashing */
...
...
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