Closed
Bug 1161186
Opened 10 years ago
Closed 9 years ago
Cannot build with PR_LOGGING unset
Categories
(Core :: Audio/Video: Playback, defect)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox40 | --- | affected |
People
(Reporter: toonetown, Unassigned)
Details
(Keywords: autoland)
Attachments
(2 obsolete files)
The change in Bug 1160064 sets the value of gMediaDecoderLog on line 130 - however, the extern gMediaDecoderLog is only set when PR_LOGGING is defined.
Reporter | ||
Comment 1•10 years ago
|
||
Just wrap the usage with #ifdef
Attachment #8601059 -
Flags: review?(jwwang)
Comment 2•10 years ago
|
||
Isn't PR_LOGGING supposed to be true on all builds at this point? I at least have been operating on that assumption. I think we should just remove the #ifdefs.
Flags: needinfo?(erahm)
Reporter | ||
Comment 3•10 years ago
|
||
I don't know. All I know is that for some reason it's not true for my builds...but I'm building with --disable-logging.
If --disable-logging shouldn't be doing anything anymore, then I say go ahead, remove the ifdefs, and get rid of --disable-logging as well. However, if the option exists, it shouldn't break existing (working) builds.
Comment 4•10 years ago
|
||
(In reply to Nathan Toone from comment #3)
> I don't know. All I know is that for some reason it's not true for my
> builds...but I'm building with --disable-logging.
>
> If --disable-logging shouldn't be doing anything anymore, then I say go
> ahead, remove the ifdefs, and get rid of --disable-logging as well.
> However, if the option exists, it shouldn't break existing (working) builds.
Yes, the issue is that |--disable-logging| is still an option [1]. At this point we could remove that option; if that's something you feel we should do lets get a bug on file. This would certainly clean up a lot of needless ifdefs!
[1] https://hg.mozilla.org/mozilla-central/annotate/34828fed1639/configure.in#l6949
Flags: needinfo?(erahm)
Reporter | ||
Comment 5•10 years ago
|
||
Personally, I like --disable-logging...particularly on android - so that it doesn't fill up my logcat log. That, however, should be a separate bug (in my opinion), and as long as it's an option, compilation should at least work (thus the patch attached to this bug should probably be applied)
Comment 6•10 years ago
|
||
Comment on attachment 8601059 [details] [diff] [review]
bug-1161186.diff
Review of attachment 8601059 [details] [diff] [review]:
-----------------------------------------------------------------
I filed bug 1161238. As for this particular bug, please fix it by removing the other |#ifdef PR_LOGGING| instance(s) around this log module rather than adding more here. :-)
Thanks for stepping up and getting this sorted out!
Attachment #8601059 -
Flags: review?(jwwang) → review-
Comment 7•10 years ago
|
||
(In reply to Nathan Toone from comment #5)
> Personally, I like --disable-logging...particularly on android - so that it
> doesn't fill up my logcat log.
Logging still has no effect without the NSPR_LOG_MODULES environmental variable set, right?
> That, however, should be a separate bug (in
> my opinion), and as long as it's an option, compilation should at least work
> (thus the patch attached to this bug should probably be applied)
See comment 5, sorry for mid-airing.
Reporter | ||
Comment 8•10 years ago
|
||
Remove the other #ifdef instead of adding a new one.
Attachment #8601059 -
Attachment is obsolete: true
Attachment #8601112 -
Flags: review?(bobbyholley)
Comment 9•10 years ago
|
||
Comment on attachment 8601112 [details] [diff] [review]
bug-1161186.diff
Review of attachment 8601112 [details] [diff] [review]:
-----------------------------------------------------------------
Excellent, thank you!
Attachment #8601112 -
Flags: review?(bobbyholley) → review+
Reporter | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 10•10 years ago
|
||
can we get a try run for changes, thanks!
Flags: needinfo?(nathan)
Keywords: checkin-needed
Reporter | ||
Comment 11•10 years ago
|
||
Flags: needinfo?(nathan)
Updated•9 years ago
|
Component: Audio/Video → Audio/Video: Playback
Gerald - can you see if this patch still matters and land it if needed?
Flags: needinfo?(gsquelart)
Keywords: autoland
PR_LOGGING was completely removed in bug 1163201, as well as --disable-logging in bug 1161238.
Also gMediaDecoderLog is now a statically-initialized LazyLogModule object.
So this bug (and patch) is not relevant anymore.
I'll mark it as fixed, through the magic of the above-mentioned bugs.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(gsquelart)
Resolution: --- → FIXED
Attachment #8601112 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•