Skip to content
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

remove circular dependency between //media/base and //media/starboard #4645

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sideb0ard
Copy link
Contributor

@sideb0ard sideb0ard commented Jan 6, 2025

b/380940036

Moves decoder_buffer_allocator_ from //media/base/media_client.h into derived class RenderMediaClient

This supersedes earlier PR #4593

@sideb0ard sideb0ard requested a review from a team as a code owner January 6, 2025 21:36

#if BUILDFLAG(USE_STARBOARD_MEDIA)
// TODO(b/326497953): Support Suspend() and Resume().
::media::DecoderBufferAllocator decoder_buffer_allocator_;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for haven't realized that we didn't have our own MediaClient for Cobalt yet. Since @yell0wd0g recommended against modifying //content, we should introduce a Cobalt specific MediaClient.

If there is already a flow setting up for Cobalt initialization, and we just need to create and inject a CobaltMediaClient somewhere, let's do it now. If the initialization flow isn't ready, please file a bug (or find the existing bug) for it, and create a new bug for CobaltMediaClient blocking on the first one.

Copy link
Contributor

@xiaomings xiaomings Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, we probably don't need to create the decoder_buffer_allocator_ inside a MediaClient for now, and we just need it as a Cobalt wide object somewhere. Feel free to go with that path if there is an obvious place to put such objects. Such a solution should work on both Android TV and Evergreen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants