webrtc/talk/media
magjed@webrtc.org f09e7b8a4f WebRtcVideoFrame: DCHECK exclusive ownership for non-const pixel access
Add some const safety by DCHECK(HasOneRef()) in non-const GetYPlane. This CL also replaces all incorrect non-const calls with const calls for pixel data access in cricket::VideoFrame. It's easy to call the non-const version of e.g. GetYPlane by mistake, even if only const-access is needed. For example:
const scoped_ptr<cricket::VideoFrame> foo;
const uint8_t* y = foo->GetYPlane();
will actually call the non-const version of GetYPlane.

R=mflodman@webrtc.org, perkj@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/39079004

Cr-Commit-Position: refs/heads/master@{#8507}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8507 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-02-25 14:50:19 +00:00
..
base WebRtcVideoFrame: DCHECK exclusive ownership for non-const pixel access 2015-02-25 14:50:19 +00:00
devices Don't call g_thread_init on glib >=2.31.0 2015-02-17 21:23:13 +00:00
other (Auto)update libjingle 77263371-> 77296420 2014-10-08 22:24:30 +00:00
sctp Clean kForever from basictypes and move it to the interfaces that actually have it. 2015-02-09 14:19:39 +00:00
testdata * Move test data assests required by video frame tests to be in libjingle instead of elsewhere and co-located with other libjingle test data files. 2014-09-03 23:17:36 +00:00
webrtc WebRtcVideoFrame: DCHECK exclusive ownership for non-const pixel access 2015-02-25 14:50:19 +00:00