Bug 181647 - [GStreamer] misc fixes and cleanups
Summary: [GStreamer] misc fixes and cleanups
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philippe Normand
URL:
Keywords: InRadar
Depends on:
Blocks: 181672 181673
  Show dependency treegraph
 
Reported: 2018-01-15 06:32 PST by Philippe Normand
Modified: 2018-01-16 08:05 PST (History)
3 users (show)

See Also:


Attachments
Patch (23.01 KB, patch)
2018-01-15 07:24 PST, Philippe Normand
no flags Details | Formatted Diff | Diff
Patch (19.28 KB, patch)
2018-01-16 01:34 PST, Philippe Normand
mcatanzaro: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2018-01-15 06:32:47 PST
.
Comment 1 Philippe Normand 2018-01-15 07:24:45 PST
Created attachment 331336 [details]
Patch
Comment 2 Michael Catanzaro 2018-01-15 13:33:15 PST
Comment on attachment 331336 [details]
Patch

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

> Source/WebCore/ChangeLog:18
> +        (WebCore::MediaPlayerPrivateGStreamer::handleMessage): Switch to
> +        streaming code path when no content-length was reported by the
> +        http source element.

Maybe this one is worth splitting into a separate patch?

> Source/WebCore/ChangeLog:31
> +        (webkit_web_src_init): Enable keepAlive by default like in souphttpsrc.

Ditto?

> Source/WebCore/ChangeLog:37
> +        (CachedResourceStreamingClient::responseReceived): Change appsrc
> +        stream-type when we wan't seek. Also update caps like souphttpsrc
> +        does and emit headers as an element message, like souphttpsrc.

Ditto?

> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:482
> +    GST_DEBUG_OBJECT(src, "Persistent connection support %s", priv->keepAlive ? "enabled":"disabled");

Leave spaces around the :

> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:799
> +    GST_DEBUG_OBJECT(src, "Size: %" G_GINT64_FORMAT ", seekable: %s", priv->size, priv->seekable ? "yes":"no");

Ditto
Comment 3 Philippe Normand 2018-01-16 01:34:25 PST
Created attachment 331374 [details]
Patch
Comment 4 Philippe Normand 2018-01-16 01:35:39 PST
(In reply to Michael Catanzaro from comment #2)
> Comment on attachment 331336 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=331336&action=review
> 
> > Source/WebCore/ChangeLog:18
> > +        (WebCore::MediaPlayerPrivateGStreamer::handleMessage): Switch to
> > +        streaming code path when no content-length was reported by the
> > +        http source element.
> 
> Maybe this one is worth splitting into a separate patch?
> 

Ok

> > Source/WebCore/ChangeLog:31
> > +        (webkit_web_src_init): Enable keepAlive by default like in souphttpsrc.
> 
> Ditto?
> 

Humpf. I don't think so.

> > Source/WebCore/ChangeLog:37
> > +        (CachedResourceStreamingClient::responseReceived): Change appsrc
> > +        stream-type when we wan't seek. Also update caps like souphttpsrc
> > +        does and emit headers as an element message, like souphttpsrc.
> 
> Ditto?
> 

Yes

> > Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:482
> > +    GST_DEBUG_OBJECT(src, "Persistent connection support %s", priv->keepAlive ? "enabled":"disabled");
> 
> Leave spaces around the :
> 
> > Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:799
> > +    GST_DEBUG_OBJECT(src, "Size: %" G_GINT64_FORMAT ", seekable: %s", priv->size, priv->seekable ? "yes":"no");
> 
> Ditto
Comment 5 Philippe Normand 2018-01-16 08:00:19 PST
Committed r226973: <https://trac.webkit.org/changeset/226973>
Comment 6 Radar WebKit Bug Importer 2018-01-16 08:05:49 PST
<rdar://problem/36543956>