sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 344 forks source link

Fixed usage of old-version webrtc::VideoFrame #271

Closed mr-kakorin closed 5 years ago

mr-kakorin commented 5 years ago

This examples could not be compiled right now due to error: "In member function 'virtual void scy::webrtc::ObjectDetector::OnFrame(const webrtc::VideoFrame&)': 'class webrtc::VideoFrameBuffer' has no member named 'DataY'

In newer versions of webrtc(including webrtc-22215-ab42706 which is used in libsourcey) methods DataY (and DataU, DataV) moved from VideoFrameBuffer to PlanarYuv8Buffer which is implemented by I420Buffer. To access instance of I420Buffer GetI420() should be called.

auscaster commented 5 years ago

Thank, glad to merge this in :+1: