Closed Bug 896374 Opened 11 years ago Closed 11 years ago

[A/V] Video codec is blocked, and no video file can be played.

Categories

(Firefox OS Graveyard :: Gaia::Video, defect, P1)

ARM
Gonk (Firefox OS)

Tracking

(blocking-b2g:leo+, firefox23 wontfix, firefox24 wontfix, firefox25 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 wontfix, b2g-v1.1hd fixed)

RESOLVED FIXED
1.1 QE5
blocking-b2g leo+
Tracking Status
firefox23 --- wontfix
firefox24 --- wontfix
firefox25 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- wontfix
b2g-v1.1hd --- fixed

People

(Reporter: leo.bugzilla.gecko, Assigned: sotaro)

Details

(Whiteboard: [TD-57882][LeoVB+] )

Attachments

(1 file, 1 obsolete file)

STR 1. Play video file on device 1. 2. Send any video file from device 2 to device 1. 3. In device 1, receive file and try to play it from the notification, while first one is still playing. 4. Device 1 remains black screen with spinner. Then, push pause/start 2~3 times. 5. Push back button. Then, video frame is stopped and I can hear only audio. Progress bar isn't changed. After that, I cannot play any video file until turn off the device.
blocking-b2g: --- → leo+
This bug is already reported in bug 889191. After investigation, the cause is related to bug 887650. I cc alive so that he can test them together.
(In reply to John Hu [:johnhu] from comment #1) > This bug is already reported in bug 889191. After investigation, the cause > is related to bug 887650. I cc alive so that he can test them together. I'm not sure that this problem is related to bug 889191 and bug 887650. Maybe, this problem will be fixed by that patch. But I think we have to handle another problem here. Bug 889191 and bug 887650 is about UX problem. However, the main issue here is "After this problem, every video file cannot be played at all". When push back button in STR 5 in comment #0, Video codec is suddenly stopped without any state change. And even though I push back button, it doesn't release A/V codec. So, no media file start to play because it cannot use any H/W codec.
Assignee: nobody → sotaro.ikeda.g
Sorry, I made this bug at MediaResourceManagerServic e:-(
Somehow, following code does not work. > while (it != mVideoCodecRequestQueue.end()) {
I become clear that I hit android::Vector's bug. Following code does not work correctly. It assumes the Vector uses same arryBuffer. But it is not always correct. There is a case that the arryBuffer is reallocated. In this case it does not work. > it = mVideoCodecRequestQueue.erase(it);
Changed not to use the iterator returned from mVideoCodecRequestQueue.erase(it). Current gecko continues to check all mVideoCodecRequestQueue's items even when the item is found. It is not necessary and changed to break when the item is found.
Attachment #779545 - Attachment is patch: true
Attachment #779545 - Attachment mime type: text/x-patch → text/plain
Attachment #779545 - Flags: review?(chris.double)
Confirmed the patch works on v1.1 leo.
Attachment #779545 - Flags: review?(chris.double) → review+
I also checked that the patch works. And if you change vector from android to STL. It also works :) Thanks!!.
Thanks for the confirmation. I did not choose STL bacause of Bug 850576. When we need to use the following in future, It's better to change to STL. > iterator returned from mVideoCodecRequestQueue.erase(it).
Add header to a patch. Carry "chris.double: review+"
Attachment #779545 - Attachment is obsolete: true
Attachment #779770 - Flags: review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [TD-57882] → [TD-57882][LeoVB+]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: