MediaControlUtils.h contains headers and symbols, leading to a failed linking process when used elsewhere
Categories
(Core :: Audio/Video, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox72 | --- | fixed |
People
(Reporter: MeFisto94, Assigned: emilio)
References
Details
Attachments
(1 file)
So, as suggested on https://phabricator.services.mozilla.com/D47999#1575254 and later comments, I wanted to use the gMediaControlLog.
This however didn't work as MediaControlUtils.h didn't only contain Declarations but also Definitions. Thinking this is an oversight, I was preparing to move gMediaControlLog into MediaController, but the build failed again due to the methods in said file.
Is there any particular reason this Header-File Contains code? Or should this file be renamed to .cpp and should an appropriate header be added?
Comment 1•6 years ago
|
||
Could you try to rebase your patches onto the latest codebase? I believe this issue have been fixed, because we have removed the use of MediaUtils from the outer window.
| Assignee | ||
Comment 2•6 years ago
|
||
That still doesn't change the fact that MediaControlUtils.h cannot be included in two different cpp files, right?
Comment 3•6 years ago
|
||
No, it can [1], but I don't understand why including it on the outer window would cause that issue, maybe involving with compling order?
[1] https://searchfox.org/mozilla-central/search?q=MediaControlUtils.h&path=
| Assignee | ||
Comment 4•6 years ago
|
||
No, the issue is that those files get pulled into the same translation unit, so it doesn't get included multiple times. If you include it anywhere else in the project, it will file, as it defines the logger and other functions that are not marked as inline.
Does that make sense? :)
| Assignee | ||
Comment 5•6 years ago
|
||
Well I'll just fix this, hopefully the patch makes the problem obvious.
| Assignee | ||
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
| bugherder | ||
Description
•