Closed Bug 952020 Opened 12 years ago Closed 12 years ago

Remove the MediaEncoder::OnEncoderThread()

Categories

(Core :: Audio/Video: Recording, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: jhlin, Assigned: rlin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

|MediaEncoder| uses a static/global variable |sEncoderThread| to hold owning thread but assigns it only once in |GetEncodedData()|. When the 2nd instance is created and in use, the value will be out of date and |OnEncoderThread()| will always return false.
oh....Should not use static because there may more than two encoder instances....
This design is incorrect and cause threading problem, we should remove it.
Summary: mozilla::MediaEncoder holds incorrect 'owning thread' value. → Remove the MediaEncoder::OnEncoderThread()
Attached patch patch v1 (obsolete) — Splinter Review
Attached patch patch v1.1 (obsolete) — Splinter Review
Attachment #8349956 - Attachment is obsolete: true
Comment on attachment 8349959 [details] [diff] [review] patch v1.1 Hi Ralph, I need to remove this due to the implementation is wrong and useless.
Attachment #8349959 - Flags: review?(giles)
Assignee: nobody → rlin
Attachment #8349959 - Flags: review?(giles) → review?(roc)
Attached patch check-in patchSplinter Review
carry reviewer, check-in needed green try result https://tbpl.mozilla.org/?tree=Try&rev=225e6494ab22
Attachment #8349959 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Component: Video/Audio → Video/Audio: Recording
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: