Closed Bug 461844 Opened 16 years ago Closed 16 years ago

windows mobile minor cleanup of media

Categories

(Core :: Audio/Video, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dougt, Assigned: blassey)

Details

(Keywords: fixed1.9.1)

Attachments

(1 file, 4 obsolete files)

we have reduce our dependency on many of the functions and defines in a windows mobile porting library (wince shunt).
Attached patch patch v.1 (obsolete) (deleted) — Splinter Review
Attached patch patch v.2 (obsolete) (deleted) — Splinter Review
Attachment #344977 - Attachment is obsolete: true
windows mobile doesn't have stat(). Is there anything else we can do here Chris?
Comment on attachment 346495 [details] [diff] [review] patch v.2 chris, any ideas on what we can do here?
Attachment #346495 - Flags: review?(chris.double)
All it needs to do is find the length of the file. Can you do this with WINCE api calls?
Attached patch patch v.3 (obsolete) (deleted) — Splinter Review
how is something like this? (not tested)
Attachment #346495 - Attachment is obsolete: true
Attachment #348924 - Flags: review?(chris.double)
Attachment #346495 - Flags: review?(chris.double)
chris, do you have any test cases I can run this through?
+ int current = ftell(oggz->file, 0, SEEK_CUR); 'current' needs to be a 'long' since that's what ftell returns. We'll need to #ifdef WINCE for this since the 'ftell' implementation loses data (fstat provides access to a 64bit size on systems that support that).
The seeking code should hit this so if you run the video mochitests they'll fail if this doesn't work.
Attached patch patch v.4 (obsolete) (deleted) — Splinter Review
this compiles (yeah, a nice attribute of a patch), and passes mochitests (another nice attribute)
Attachment #348924 - Attachment is obsolete: true
Attachment #355837 - Flags: review?(chris.double)
Attachment #348924 - Flags: review?(chris.double)
chris, review ping?
Comment on attachment 355837 [details] [diff] [review] patch v.4 I think the changes to oggz_offset_end should be wrapped in a #if for WINCE, and leave the existing code so that it runs as normal on other platforms. A patch with these changes should also be added to the media/liboggz directory with update.sh modified to apply the patch so it doesn't get lost when I update to newer liboggz versions. The README_MOZILLA will also need to be updated to refer to this bug and the patch. See the way the other patches are handled in those files.
Attached patch patch v.5 (deleted) — Splinter Review
Assignee: doug.turner → bugmail
Attachment #355837 - Attachment is obsolete: true
Attachment #358323 - Flags: review?
Attachment #355837 - Flags: review?(chris.double)
Attachment #358323 - Flags: review? → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attachment #358323 - Flags: approval1.9.1?
Attachment #358323 - Flags: approval1.9.1? → approval1.9.1+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: