Bug 200633

Summary: [GStreamer] Deal with slow buffer consumption in GStreamerMediaStreamSource
Product: WebKit Reporter: Thibault Saunier <tsaunier>
Component: New BugsAssignee: Thibault Saunier <tsaunier>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, pnormand, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Thibault Saunier 2019-08-12 10:43:09 PDT
[GStreamer] Deal with slow buffer consumption in GStreamerMediaStreamSource
Comment 1 Thibault Saunier 2019-08-12 10:54:01 PDT
Created attachment 376077 [details]
Patch
Comment 2 Philippe Normand 2019-08-15 07:06:18 PDT
Comment on attachment 376077 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=376077&action=review

> Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:553
>  static gboolean webkitMediaStreamSrcSetupAppSrc(WebKitMediaStreamSrc* self,
> -    MediaStreamTrackPrivate* track, GstElement** element,
> +    MediaStreamTrackPrivate* track, WebKitMediaStreamSrc::SourceData* data,
>      GstStaticPadTemplate* pad_template, bool onlyTrack)

Where's the call site for this? I don't see it updated in this patch?
Comment 3 Thibault Saunier 2019-08-15 07:24:05 PDT
Comment on attachment 376077 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=376077&action=review

>> Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:553
>>      GstStaticPadTemplate* pad_template, bool onlyTrack)
> 
> Where's the call site for this? I don't see it updated in this patch?

In `webkitMediaStreamSrcAddTrack` - no need to update it here as it does:

>        res = webkitMediaStreamSrcSetupAppSrc(self, track, &self->audioSrc, &audioSrcTemplate, onlyTrack);

and `self->audioSrc` has been changed to `WebKitMediaStreamSrc::SourceData`.
Comment 4 WebKit Commit Bot 2019-08-15 10:17:59 PDT
Comment on attachment 376077 [details]
Patch

Clearing flags on attachment: 376077

Committed r248721: <https://trac.webkit.org/changeset/248721>
Comment 5 WebKit Commit Bot 2019-08-15 10:18:00 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2019-08-15 10:18:16 PDT
<rdar://problem/54351290>