[WPE][GTK][WebRTC] Fix leaks in the libwebrtc Decoder and Encoder
Created attachment 350369 [details] Patch
Attachment 350369 [details] did not pass style-queue: ERROR: Source/WebCore/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 350374 [details] Patch
Comment on attachment 350374 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=350374&action=review > Source/WebCore/ChangeLog:9 > + startegy as other libwebrtc encoder implementation). tyop: startegy ;) > Source/WebCore/platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp:84 > SetRestrictionCaps(caps); Would it be better to understand if SetRestrictionCaps() was taking a GRefPtr instead of a raw pointer? > Source/WebCore/platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp:110 > + m_encodedFrame._size = codecSettings->width * codecSettings->height * 3; 3 is for the number of planes I assume? Is this info stored in the codec settings maybe?
(In reply to Philippe Normand from comment #4) > Comment on attachment 350374 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=350374&action=review > > > Source/WebCore/ChangeLog:9 > > + startegy as other libwebrtc encoder implementation). > > tyop: startegy ;) Fixed. > > Source/WebCore/platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp:84 > > SetRestrictionCaps(caps); > > Would it be better to understand if SetRestrictionCaps() was taking a > GRefPtr instead of a raw pointer? Fixed. > > Source/WebCore/platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp:110 > > + m_encodedFrame._size = codecSettings->width * codecSettings->height * 3; > > 3 is for the number of planes I assume? Is this info stored in the codec > settings maybe? It doesn't seem to contain any info about that, I just reused what they did for the openh264 encoder.
Created attachment 350395 [details] Patch
Comment on attachment 350395 [details] Patch Clearing flags on attachment: 350395 Committed r236397: <https://trac.webkit.org/changeset/236397>
All reviewed patches have been landed. Closing bug.
<rdar://problem/44723922>