Closed
Bug 598197
Opened 16 years ago
Closed 16 years ago
Don't setup audio when we can't get the JNIEnv
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| fennec | 2.0b1+ | --- |
People
(Reporter: mwu, Assigned: mwu)
Details
(Keywords: crash)
Attachments
(1 file)
|
1.20 KB,
patch
|
blassey
:
review+
kinetik
:
review+
|
Details | Diff | Splinter Review |
Otherwise we crash. This happens in the child process.
Attachment #476958 -
Flags: review?(blassey.bugs)
| Assignee | ||
Updated•16 years ago
|
tracking-fennec: --- → ?
| Assignee | ||
Updated•16 years ago
|
Attachment #476958 -
Flags: review?(kinetik)
Comment 1•16 years ago
|
||
Comment on attachment 476958 [details] [diff] [review]
Fix
I'm not clear when this can happen, but would it make more sense to return SA_ERROR_NO_INIT when GetJNIForThread fails?
Attachment #476958 -
Flags: review?(kinetik) → review+
| Assignee | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> Comment on attachment 476958 [details] [diff] [review]
> Fix
>
> I'm not clear when this can happen, but would it make more sense to return
> SA_ERROR_NO_INIT when GetJNIForThread fails?
Sure. For the first or both cases?
This happens in the child/content process where there is no JVM running.
Comment 3•16 years ago
|
||
Actually, looking at the other implementations, SA_ERROR_NO_DEVICE might make slightly more sense. Just for the first case, I think. I'm undecided about the second case--if GetJNIForThread fails in destroy, it must've also failed in create, right? Therefore there's nothing to destroy and no error.
Comment 4•16 years ago
|
||
Comment on attachment 476958 [details] [diff] [review]
Fix
SA_ERROR_NOT_SUPPORTED makes more sense to me than SA_ERROR_NO_INIT (which I take to mean that we're not initialized). We don't support playing audio from the unprivileged processes. Though we could potentially if we remoted this.
Attachment #476958 -
Flags: review?(blassey.bugs) → review+
Updated•16 years ago
|
tracking-fennec: ? → 2.0b1+
| Assignee | ||
Comment 5•16 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/e90a6b6e4511
I used SA_ERROR_NO_DEVICE.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•