Closed
Bug 1210319
Opened 9 years ago
Closed 9 years ago
Remove unused parts of libstagefright
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla45
People
(Reporter: mozbugz, Assigned: mozbugz)
References
Details
Attachments
(3 files, 1 obsolete file)
67.91 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
1.04 KB,
patch
|
jya
:
review+
|
Details | Diff | Splinter Review |
8.35 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
Only a subset of libstagefright is actually used. The remainder is just sitting there, attracting false alarms, sucking up maintenance time. WIP: https://treeherder.mozilla.org/#/jobs?repo=try&revision=bc3294931144
Updated•9 years ago
|
Priority: -- → P2
Assignee | ||
Comment 1•9 years ago
|
||
Part 1: Removed unused/useless code.
Assignee: nobody → gsquelart
Attachment #8692753 -
Flags: review?(giles)
Assignee | ||
Comment 2•9 years ago
|
||
Part 2: Minor interface clean-up.
Attachment #8692754 -
Flags: review?(giles)
Assignee | ||
Comment 3•9 years ago
|
||
Part 3: Lowered useless log level.
Attachment #8692755 -
Flags: review?(jyavenard)
Assignee | ||
Comment 4•9 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f49891fd2aca
Updated•9 years ago
|
Attachment #8692755 -
Flags: review?(jyavenard) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8692753 [details] [diff] [review] 1210319-p1-prune-stagefright.patch Review of attachment 8692753 [details] [diff] [review]: ----------------------------------------------------------------- Yay! I'm going to assume everything still works.
Attachment #8692753 -
Flags: review?(giles) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8692754 [details] [diff] [review] 1210319-p2-cppization.patch Review of attachment 8692754 [details] [diff] [review]: ----------------------------------------------------------------- ::: media/libstagefright/frameworks/av/media/libstagefright/include/MPEG4Extractor.h @@ +123,5 @@ > + mDefaultSampleSize(0), mDefaultSampleFlags(0) > + { > + mFlags[0] = 0; > + mFlags[1] = 0; > + mFlags[2] = 0; Would be cleaner with mFlags = {0}; or PodZero(mFlags, ArrayLength(mFlags)); Up to you though.
Attachment #8692754 -
Flags: review?(giles) → review+
Assignee | ||
Comment 7•9 years ago
|
||
(In reply to Ralph Giles (:rillian) from comment #6) > Comment on attachment 8692754 [details] [diff] [review] > 1210319-p2-cppization.patch > > Review of attachment 8692754 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: > media/libstagefright/frameworks/av/media/libstagefright/include/ > MPEG4Extractor.h > @@ +123,5 @@ > > + mDefaultSampleSize(0), mDefaultSampleFlags(0) > > + { > > + mFlags[0] = 0; > > + mFlags[1] = 0; > > + mFlags[2] = 0; > > Would be cleaner with > > mFlags = {0}; > > or > > PodZero(mFlags, ArrayLength(mFlags)); > > Up to you though. Good point, thank you. I tried to member-initialize mFlags({0}) which seemed the cleanest, but member-initializing arrays is not valid C++: https://treeherder.mozilla.org/#/jobs?repo=try&revision=0b8dffddae72 Anyway, upon further examination, this structure was actually only used by code removed in the first patch, and 'trex' parsing doesn't even check for validity, so I'll just remove the whole thing -- Less surface area to attract false alarms!
Assignee | ||
Comment 8•9 years ago
|
||
Part 2, v2: Minor intf clean-up, RIP trex. Made some class interfaces a bit more "C++11"-ish, to protect against some possible issues. Also removed 'trex', which was only used by code removed in previous patch.
Attachment #8692754 -
Attachment is obsolete: true
Attachment #8693985 -
Flags: review?(giles)
Assignee | ||
Comment 9•9 years ago
|
||
Try with all gtests, and dom/media tests: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c35c16e5cfe8
Comment 10•9 years ago
|
||
Comment on attachment 8693985 [details] [diff] [review] 1210319-p2-cppization.patch v2 Review of attachment 8693985 [details] [diff] [review]: ----------------------------------------------------------------- Even better, thanks. I still find it weird how one has to delete ctors in both the declaration and the implementation.
Attachment #8693985 -
Flags: review?(giles) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 11•9 years ago
|
||
(In reply to Ralph Giles (:rillian) from comment #10) > I still find it weird how one has to delete ctors in both the declaration > and the implementation. Nevermind, I was confused.
Comment 12•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/571d6fc4fcdd https://hg.mozilla.org/integration/mozilla-inbound/rev/cddca26367a2 https://hg.mozilla.org/integration/mozilla-inbound/rev/9e68f234636f
Keywords: checkin-needed
Comment 13•9 years ago
|
||
bugherder landing |
https://hg.mozilla.org/integration/mozilla-inbound/rev/571d6fc4fcdd https://hg.mozilla.org/integration/mozilla-inbound/rev/cddca26367a2 https://hg.mozilla.org/integration/mozilla-inbound/rev/9e68f234636f
Comment 14•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/571d6fc4fcdd https://hg.mozilla.org/mozilla-central/rev/cddca26367a2 https://hg.mozilla.org/mozilla-central/rev/9e68f234636f
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•