-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create VLCMedia Tests #19
Conversation
e6820b5
to
d255d39
Compare
Sources/VLCMedia.m
Outdated
return [NSString stringWithUTF8String:ret]; | ||
|
||
return @""; | ||
return [NSString stringWithUTF8String:ret]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will crash with ret = nil. This was not redundant line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tracked it down and seems like *ret = libvlc_media_get_codec_description(...)
calls vlc_fourcc_GetDescription
, which has the following return statement
return LookupCat(fourcc, &ret, cat) ? ret : "";
Doesn't this mean that vlc_fourcc_GetDescription
will never return nil?
After removing the commit NACKed by Caro, this is good to go for me and I like it :) |
1286fa7
to
55921e1
Compare
Ping 🔔 |
merged with faf2a0d |
Commits need to be rebased once #18 is merged.