Skip to content

Conversation

@mseroczynski
Copy link
Contributor

@mseroczynski mseroczynski commented Dec 7, 2018

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.

@googlebot
Copy link

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. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@mseroczynski
Copy link
Contributor Author

I signed it!

@googlebot
Copy link

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))
Copy link
Contributor

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?

Copy link
Contributor

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!

Copy link
Contributor

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.

Copy link
Contributor Author

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)
Copy link
Contributor

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.

Copy link
Contributor Author

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)
Copy link
Contributor

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.

@ojw28 ojw28 merged commit 9fa2525 into google:dev-v2 Dec 18, 2018
ojw28 added a commit that referenced this pull request Dec 18, 2018
PiperOrigin-RevId: 225966289
ojw28 added a commit that referenced this pull request Dec 19, 2018
PiperOrigin-RevId: 225966289
@google google locked and limited conversation to collaborators May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants