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
0aeb82b6
Commit
0aeb82b6
authored
Apr 10, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed crash in case either psz_module or psz_msg are NULL when received from core
Fixes playback of AVI files... ;)
parent
dad0ff2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+11
-10
No files found.
modules/gui/macosx/intf.m
View file @
0aeb82b6
...
...
@@ -157,19 +157,20 @@ static void MsgCallback( msg_cb_data_t *data, msg_item_t *item, unsigned int i )
{
int
canc
=
vlc_savecancel
();
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
NSDictionary
*
o_dict
=
[
NSDictionary
dictionaryWithObjects
:
[
NSArray
arrayWithObjects
:
[
NSString
stringWithUTF8String
:
item
->
psz_module
],
[
NSString
stringWithUTF8String
:
item
->
psz_msg
],
[
NSNumber
numberWithInt
:
item
->
i_type
],
nil
]
forKeys:
[
NSArray
arrayWithObjects
:
@"Module"
,
@"Message"
,
@"Type"
,
nil
]];
/* this may happen from time to time, let's bail out as info would be useless anyway */
if
(
!
item
->
psz_module
||
!
item
->
psz_msg
)
return
;
NSDictionary
*
o_dict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
[
NSString
stringWithUTF8String
:
item
->
psz_module
],
@"Module"
,
[
NSString
stringWithUTF8String
:
item
->
psz_msg
],
@"Message"
,
[
NSNumber
numberWithInt
:
item
->
i_type
],
@"Type"
,
nil
];
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
@"VLCCoreMessageReceived"
object:
nil
userInfo:
o_dict
];
[
o_pool
release
];
vlc_restorecancel
(
canc
);
}
...
...
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