Closed
Bug 964559
Opened 12 years ago
Closed 12 years ago
Remove MOZ_OGG
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: rillian, Assigned: rillian)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 2 obsolete files)
|
13.04 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
|
4.30 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
|
1.74 KB,
patch
|
cajbir
:
review+
|
Details | Diff | Splinter Review |
We have a forest of configure-time defines for disabling bits of media code, but we don't test all combinations, and they tend to bit-rot. Most recently with the MediaEncoder implementation.
Ogg is one of the lower-level libraries. It's small and required for Opus recording and playback in HTML <audio> so it's a good candidate for removing the conditional. Actually support will still be gated by the 'media.ogg.enabled' user pref.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #8366337 -
Flags: review?(chris.double)
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 8366337 [details] [diff] [review]
Remove MOZ_OGG combined patch
Adding Ted for build peer review.
Attachment #8366337 -
Flags: review?(ted)
Updated•12 years ago
|
Attachment #8366337 -
Flags: review?(chris.double) → review+
Comment 3•12 years ago
|
||
Comment on attachment 8366337 [details] [diff] [review]
Remove MOZ_OGG combined patch
Review of attachment 8366337 [details] [diff] [review]:
-----------------------------------------------------------------
::: configure.in
@@ +5397,4 @@
> AC_SUBST(MOZ_LIBVPX_CFLAGS)
> AC_SUBST(MOZ_LIBVPX_LIBS)
>
> +if test "$MOZ_WEBM"; then
This seems like you're subtly changing the meaning here, right? Will this fail to set MOZ_VORBIS=1 in the --disable-webm case?
::: python/mozbuild/mozbuild/mozinfo.py
@@ -83,4 @@
> d['tests_enabled'] = substs.get('ENABLE_TESTS') == "1"
> d['bin_suffix'] = substs.get('BIN_SUFFIX', '')
>
> - d['ogg'] = bool(substs.get('MOZ_OGG'))
You probably want to clean the skip-if/run-if ogg conditionals out of mochitest.ini before you remove this. You can just set this to True if you don't want to roll that into this patch.
Attachment #8366337 -
Flags: review?(ted) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Looks like the Try run was good! needinfo=rillian to make sure this doesn't fall off the radar. :)
Flags: needinfo?(rillian)
| Assignee | ||
Comment 6•12 years ago
|
||
Yeah, sorry. Ted pointed out an issue in his review and I haven't had time to look at it since.
Flags: needinfo?(rillian)
| Assignee | ||
Comment 7•12 years ago
|
||
Update patch to set d['ogg'] = True; in mozbuild per Ted's review comment.
We do fail to enable MOZ_VORBIS with --disable-webm, but --disable-webm doesn't build for other reasons, and is tracked in a bug we're blocking. I'd like to fix that separately.
Carrying forward r=doublec,ted.
Attachment #8366337 -
Attachment is obsolete: true
Attachment #8379403 -
Flags: review+
| Assignee | ||
Comment 8•12 years ago
|
||
Part 2: also per Ted's comment, remove the 'run-if = ogg' and 'skip-if = ogg' conditionals on the media mochitests. The tests now assume ogg is available.
Attachment #8379405 -
Flags: review?(chris.double)
| Assignee | ||
Comment 9•12 years ago
|
||
Both patches rebased and pushed to try as https://tbpl.mozilla.org/?tree=Try&rev=4cebc938da3f
Updated•12 years ago
|
Attachment #8379405 -
Flags: review?(chris.double) → review+
| Assignee | ||
Comment 10•12 years ago
|
||
Fix a typo in the no_ogg test. Carrying forward r=doublec.
Attachment #8379405 -
Attachment is obsolete: true
Attachment #8379978 -
Flags: review+
| Assignee | ||
Comment 11•12 years ago
|
||
canPlayType() returns "" not "no" for disabled formats. The mpeg and dash tests were already aware of this.
Attachment #8379980 -
Flags: review?(chris.double)
| Assignee | ||
Comment 12•12 years ago
|
||
Updated•12 years ago
|
Attachment #8379980 -
Flags: review?(chris.double) → review+
| Assignee | ||
Comment 13•12 years ago
|
||
Green on try with the patch from bug 976211.
https://tbpl.mozilla.org/?tree=Try&rev=05eb7003cf9c
| Assignee | ||
Comment 14•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7840db3e63c2
https://hg.mozilla.org/mozilla-central/rev/662f7982dc8b
https://hg.mozilla.org/mozilla-central/rev/98316f2aba5d
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Comment 16•12 years ago
|
||
imo rather than removing compile time options that make it possible to disable additional (and unneeded dependencies), a buildbot should try to build all possible combinations of optional features as a pre-release sanity test, and issues be properly fixed in a way that preserves the ability to disable unneeded features.
Comment 17•12 years ago
|
||
That is your opinion but we disagree. Sorry.
Comment 18•12 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #17)
> That is your opinion but we disagree. Sorry.
how can you know what everyone else thinks? do you have telepathic powers?
Comment 19•12 years ago
|
||
I know what the consensus is among Mozilla developers who have a stake in this discussion, which is all that matters. We don't have to make everyone in the world happy. You are always welcome to patch the source as you see fit, but don't expect us to cater to every nonstandard desire.
Comment 20•11 years ago
|
||
This configure patch portion is wrong:
2.96
2.97 -if test "$MOZ_WEBM" -o "$MOZ_OGG"; then
2.98 +if test "$MOZ_WEBM"; then
2.99 if test "$MOZ_SAMPLE_TYPE_FLOAT32"; then
If MOZ_OGG is now always true, the condition should translate to:
if test "$MOZ_WEBM" || true
It means it's always true.
Comment 21•11 years ago
|
||
Note that we're intending to drop the MOZ_WEBM switch as well, in bug 964484. (If I'm understanding correctly, that means comment 20 doesn't really matter; correct me if I'm misunderstanding though.)
You need to log in
before you can comment on or make changes to this bug.
Description
•