[Webkit-unassigned] [Bug 196691] [GStreamer] gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed in WebCore::MediaPlayerPrivateGStreamer::paused
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 24 09:06:10 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=196691
Philippe Normand <pnormand at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eric.carlson at apple.com
--- Comment #10 from Philippe Normand <pnormand at igalia.com> ---
(In reply to Michael Catanzaro from comment #8)
> More from the ending:
>
> 0:01:09.998240909 98709 0x14b1ea0 DEBUG webkitmediaplayer
> MediaPlayerPrivateGStreamer.cpp:2243:supportsType: Checking mime-type
> "image/gif"
> 0:01:09.998264264 98709 0x14b1ea0 DEBUG webkitmediaplayer
> MediaPlayerPrivateGStreamer.cpp:2253:supportsType: Supported: IsNotSupported
> 0:01:09.998276707 98709 0x14b1ea0 DEBUG webkitmediaplayer
> MediaPlayerPrivateGStreamer.cpp:2287:setPreload: Setting preload to Auto
> 0:01:09.998282618 98709 0x14b1ea0 WARN webkitmediaplayer
> MediaPlayerPrivateGStreamer.cpp:2204:loadingFailed: Loading failed, error: 4
>
> (WebKitWebProcess:98709): GStreamer-CRITICAL **: 20:07:52.445:
> gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
>
> "image/gif" looks suspicious....
Yeah that's indeed the issue. Our supportsType() returns IsNotSupported for image/gif but the MediaPlayer creates a GStreamer MediaPlayerPrivate anyway and tries to load that asset.
Eric, this looks like a bug in MediaPlayer::loadWithNextMediaEngine():
// If no MIME type is specified or the type was inferred from the file extension, just use the next engine.
if (!engine && (m_contentType.isEmpty() || m_contentMIMETypeWasInferredFromExtension))
engine = nextMediaEngine(current);
m_contentType is not empty but m_contentMIMETypeWasInferredFromExtension is true, so the next engine is loaded, regardless of the supportsType() result.
--
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/20190424/a70f349e/attachment-0001.html>
More information about the webkit-unassigned
mailing list