[Webkit-unassigned] [Bug 181855] [EME][GStreamer] Move the decryptor from AppendPipeline to PlaybackPipeline.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 26 10:52:37 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=181855

--- Comment #7 from Yacine Bandou <bandou.yacine at gmail.com> ---
(In reply to Xabier Rodríguez Calvar from comment #6)
> Comment on attachment 333490 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=333490&action=review
> 
> > Source/WebCore/platform/graphics/gstreamer/mse/PlaybackPipeline.cpp:186
> > +        GST_DEBUG_OBJECT(webKitMediaSrc, "It's an encrypted content, the parser plugins will be auto plugged by the decodebin");
> 
> Please, just use GST_DEBUG because otherwise you're saying that the source
> of that message is that object and it is not true. Besides, this message is
> unclear to me. Do you mean the parser or the decryptor? Plugins plural? My
> guess is that you just mean decryptor elements.
> 

I agree, I'll replace it by:

+ GST_DEBUG("It's encrypted content, parsers are not needed before decrypting the content");

When it is encrypted content, we don't need to add manually the parsers like h264parse or h265parse in the playback pipeline. 

> 
> > Source/WebCore/platform/graphics/gstreamer/mse/PlaybackPipeline.cpp:354
> > +    WebKitMediaSrcPrivate* priv = m_webKitMediaSrc->priv;
> > +    Vector<GstAppSrc*> appsrcs;
> > +
> > +    GST_OBJECT_LOCK(m_webKitMediaSrc.get());
> > +    for (Stream* stream : priv->streams) {
> > +        if (stream->appsrc)
> > +            appsrcs.append(GST_APP_SRC(stream->appsrc));
> > +    }
> > +    GST_OBJECT_UNLOCK(m_webKitMediaSrc.get());
> > +
> > +    for (GstAppSrc* appsrc : appsrcs) {
> > +        GST_TRACE("dispatching key to playback pipeline %p", this);
> > +        gst_element_send_event((GstElement*)appsrc, gst_event_new_custom(GST_EVENT_CUSTOM_DOWNSTREAM_OOB, gst_structure_copy(structure.get())));
> > +    }
> 
> What's the problem of just sending the event to the pipeline itself?

I was inspired by the function "PlaybackPipeline::markEndOfStream"

But I agree, we could just send the event to the pipeline itself.

I'll remove the function dispatchDecryptionStructure.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180426/9c1f81ec/attachment.html>


More information about the webkit-unassigned mailing list