Closed Bug 1069277 Opened 10 years ago Closed 10 years ago

AppleVTDecoder doesn't compile with non unified build

Categories

(Core :: Audio/Video, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(1 file, 1 obsolete file)

Following bug 1062654, non-unified builds on mac fail.

https://tbpl.mozilla.org/php/getParsedLog.php?id=48370828&tree=Mozilla-Inbound#error0

Error is:
../../../dist/include/nsAutoPtr.h:73:5: error: deleting pointer to incomplete type 'mozilla::AppleFrameRef' may cause undefined behavior [-Werror,-Wdelete-incomplete]
    delete mRawPtr;
    ^      ~~~~~~~
/builds/slave/m-in-osx64-d-nu-00000000000000/build/content/media/fmp4/apple/AppleVTDecoder.cpp:161:5: note: in instantiation of member function 'nsAutoPtr<mozilla::AppleFrameRef>::~nsAutoPtr' requested here
    nsAutoPtr<AppleFrameRef>(static_cast<AppleFrameRef*>(sourceFrameRefCon));
    ^
/builds/slave/m-in-osx64-d-nu-00000000000000/build/content/media/fmp4/apple/AppleVDADecoder.h:28:7: note: forward declaration of 'mozilla::AppleFrameRef'
class AppleFrameRef;
      ^
1 error generated.
make[5]: *** [AppleVTDecoder.o] Error 1
make[4]: *** [content/media/fmp4/target] Error 2
make[4]: *** Waiting for unfinished jobs....
Attached patch Do not obfuscate AppleFrameRef (obsolete) — Splinter Review
Simplistic solution
Attachment #8491498 - Flags: review?(giles)
re-format one declaration
Attachment #8491527 - Flags: review?(rjesup)
Attachment #8491498 - Attachment is obsolete: true
Attachment #8491498 - Flags: review?(giles)
Attachment #8491527 - Flags: review?(rjesup) → review+
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: