Bug 217974

Summary: [GStreamer] Create video sink only for video player
Product: WebKit Reporter: Philippe Normand <pnormand>
Component: PlatformAssignee: Philippe Normand <pnormand>
Status: RESOLVED FIXED    
Severity: Normal CC: calvaris, cgarcia, eric.carlson, ews-watchlist, glenn, gustavo, jer.noble, menard, philipj, sergio, vjaquez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch calvaris: review+

Description Philippe Normand 2020-10-20 10:53:36 PDT
.
Comment 1 Philippe Normand 2020-10-20 10:58:07 PDT
Created attachment 411888 [details]
Patch
Comment 2 Víctor M. Jáquez L. 2020-10-21 02:36:23 PDT
unofficial lgtm :)
Comment 3 Xabier Rodríguez Calvar 2020-10-21 02:48:06 PDT
Comment on attachment 411888 [details]
Patch

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

> Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:320
> -        gst_element_register(0, "webkitglvideosink", GST_RANK_PRIMARY, WEBKIT_TYPE_GL_VIDEO_SINK);
> +        gst_element_register(0, "webkitglvideosink", GST_RANK_NONE, WEBKIT_TYPE_GL_VIDEO_SINK);

Why do you need this?

> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:2732
> +    GST_INFO("Creating pipeline for %s player", m_player->isVideoPlayer() ? "video":"audio");

Nit: spaces around :
Comment 4 Philippe Normand 2020-10-21 03:11:29 PDT
Comment on attachment 411888 [details]
Patch

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

>> Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:320
>> +        gst_element_register(0, "webkitglvideosink", GST_RANK_NONE, WEBKIT_TYPE_GL_VIDEO_SINK);
> 
> Why do you need this?

Because if we don't give a video-sink to playbin it will create an autovideosink, which, without this change, would create a webkitglvideosink.
Comment 5 Philippe Normand 2020-10-21 03:51:08 PDT
Committed r268790: <https://trac.webkit.org/changeset/268790>
Comment 6 Radar WebKit Bug Importer 2020-10-21 03:52:21 PDT
<rdar://problem/70523722>