-
Notifications
You must be signed in to change notification settings - Fork 6k
Blacklist OMX.SEC.mp3.dec and OMX.brcm.audio.mp3.decoder on Samsung devices #5216
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
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
I signed it! |
|
CLAs look good, thanks! |
|
|
||
| // Work around https://github.com/google/ExoPlayer/issues/4519. | ||
| if ("OMX.SEC.mp3.dec".equals(name) && "SM-T530".equals(Util.MODEL)) { | ||
| if (("OMX.SEC.mp3.dec".equals(name) || "OMX.brcm.audio.mp3.decoder".equals(name)) |
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.
Presumably each device has one of these decoders or the other. Can the code be structured to reflect this?
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.
Oh right, I read the change description and you're saying these devices really do have both of these (and the Google one). Is that definitely true for all of the referenced devices? If so then respond here and otherwise ignore the comment. Thanks!
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.
Looking at this more, I don't think it is true that all of these devices can have both of these decoders. "OMX.brcm" is probably Broadcom, but I think only two of these devices have Broadcom chipsets (SM-G350 and GT-I9152). I'd like for the code to accurately reflect what decoders are present on each device.
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.
Thank you for catching this out. I am 100% sure about (SM-G350, GT-I9152 and also GT-S7580) because I own psysical devices and debugged on all three them. As you pointed out, other devices (SM-T231, GT-I9152, GT-P5220) were just an assumption of similarity. I've corrected the PR to meet your suggestions and looking forward for round two of review.
PS: Correct me if I'm wrong but I think these codecs should be just somehow prioritized (not just Collections.singletonList(decoderInfos.get(0))) - I thought of this solution as a temporary fix that will be replaced somewhere in the future, as the list of if's may/will continue growing forever with current approach.
| return false; | ||
| } | ||
| if (("OMX.SEC.mp3.dec".equals(name) || "OMX.brcm.audio.mp3.decoder".equals(name)) | ||
| && ("GT-I9515".equals(Util.MODEL) |
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 think this one belongs in the block above. It's not a broadcom based device.
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.
Overlooked! Swapping GT-I9515 with GT-I9152
|
|
||
| // Work around https://github.com/google/ExoPlayer/issues/4519. | ||
| if ("OMX.SEC.mp3.dec".equals(name) && "SM-T530".equals(Util.MODEL)) { | ||
| if ("OMX.SEC.mp3.dec".equals(name) && ("GT-I9152".equals(Util.MODEL) |
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'm surprised the GT-I9152 isn't in the block below, given this one is a broadcom based device.
Few confirmed fixes addressing #4519
These devices list below codecs (in this order):
OMX.SEC.mp3.dec
OMX.brcm.audio.mp3.decoder
OMX.google.mp3.decoder
Out of this list only OMX.google.mp3.decoder is working properly.