Closed Bug 800538 Opened 12 years ago Closed 12 years ago

Add MOZ_ASSERT for mVoiceEngine in MediaEngineWebRTCAudioSource/etc constructors

Categories

(Core :: WebRTC, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: jesup, Assigned: jib)

References

Details

(Whiteboard: [WebRTC], [blocking-webrtc-] [qa-])

Attachments

(1 file, 1 obsolete file)

Belt-and-suspenders safety
Blocks: 800579
Priority: -- → P3
Whiteboard: [WebRTC], [blocking-webrtc-]
Assignee: nobody → jib
Attached patch Adds two MOZ_ASSERTs (obsolete) — Splinter Review
Note that I took the "etc" in the comment as license to add an equivalent MOZ_ASSERT to the mVideoEngine in MediaEngineWebRTCVideoSource as well.
Attachment #686386 - Flags: review?(rjesup)
Status: NEW → ASSIGNED
Comment on attachment 686386 [details] [diff] [review]
Adds two MOZ_ASSERTs

Review of attachment 686386 [details] [diff] [review]:
-----------------------------------------------------------------

::: content/media/webrtc/MediaEngineWebRTC.h
@@ +62,5 @@
>    // ViEExternalRenderer.
>    virtual int FrameSizeChange(unsigned int, unsigned int, unsigned int);
>    virtual int DeliverFrame(unsigned char*, int, uint32_t, int64_t);
>  
> +  MediaEngineWebRTCVideoSource(webrtc::VideoEngine* videoEngine,

Mozilla prefers aFoo for parameters, mFoo for member vars, foo for locals.  Put this back to aVideoEnginePtr (or aVideoEngine might be better), and change the AudioSource from voiceEngine to aVoiceEngine
Attachment #686386 - Flags: review?(rjesup) → review+
I tried to make it symmetrical with the Audio code. Should I change the Audio code to the preferred syntax or leave both alone?
Addressing comments from review, carrying forward r=jesup.
Attachment #686386 - Attachment is obsolete: true
Attachment #686409 - Flags: review+
Attachment #686409 - Flags: checkin?(rjesup)
https://hg.mozilla.org/mozilla-central/rev/3d26dff1f3e9
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [WebRTC], [blocking-webrtc-] → [WebRTC], [blocking-webrtc-] [qa-]
Attachment #686409 - Flags: checkin?(rjesup) → checkin+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: