mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
wpe: Ignore 'error-cancelled' 'failures'
This happens when the user use the 'load-bytes' signal and nothing is wrong there Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2085>
This commit is contained in:
parent
3f08fcb4ff
commit
8a0224a198
1 changed files with 7 additions and 0 deletions
|
@ -195,6 +195,13 @@ WPEView* WPEContextThread::createWPEView(GstWpeSrc* src, GstGLContext* context,
|
|||
static gboolean s_loadFailed(WebKitWebView*, WebKitLoadEvent, gchar* failing_uri, GError* error, gpointer data)
|
||||
{
|
||||
GstWpeSrc* src = GST_WPE_SRC(data);
|
||||
|
||||
if (g_error_matches(error, WEBKIT_NETWORK_ERROR, WEBKIT_NETWORK_ERROR_CANCELLED)) {
|
||||
GST_INFO_OBJECT (src, "Loading cancelled.");
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GST_ELEMENT_ERROR (GST_ELEMENT_CAST(src), RESOURCE, FAILED, (NULL), ("Failed to load %s (%s)", failing_uri, error->message));
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue