⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 273731 in webkit


Ignore:
Timestamp:
Mar 2, 2021, 8:31:54 AM (6 years ago)
Author:
calvaris@igalia.com
Message:

[GStreamer] Error instead of asserting on the player in the source
​https://bugs.webkit.org/show_bug.cgi?id=222108

Reviewed by Philippe Normand.

The release assert can be hit in some cases in smoothstreaming
with already invalid pipelines so better to just error out instead
of assert on release.

  • platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:

(webKitWebSrcCreate):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r273730 r273731  
     12021-03-02  Xabier Rodriguez Calvar  <calvaris@igalia.com>
     2
     3        [GStreamer] Error instead of asserting on the player in the source
     4        https://bugs.webkit.org/show_bug.cgi?id=222108
     5
     6        Reviewed by Philippe Normand.
     7
     8        The release assert can be hit in some cases in smoothstreaming
     9        with already invalid pipelines so better to just error out instead
     10        of assert on release.
     11
     12        * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
     13        (webKitWebSrcCreate):
     14
    1152021-03-02  Youenn Fablet  <youenn@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp

    r272908 r273731  
    481481            return GST_FLOW_FLUSHING;
    482482    }
    483     RELEASE_ASSERT(members->player);
     483    if (!members->player) {
     484        GST_ERROR_OBJECT(src, "Couldn't obtain WebKitWebSrcPlayerContext, which is necessary to make network requests");
     485        return GST_FLOW_ERROR;
     486    }
    484487
    485488    GST_TRACE_OBJECT(src, "readPosition = %" G_GUINT64_FORMAT " requestedPosition = %" G_GUINT64_FORMAT, members->readPosition, members->requestedPosition);
Note: See TracChangeset for help on using the changeset viewer.