From e0953efd123ebda5b097ee36688f16277a80a6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 18 Oct 2018 13:10:48 +0200 Subject: [PATCH] gir-files: fix error quarks --- gir-files/GstGL-1.0.gir | 8 ++++---- gir-files/fix.sh | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/gir-files/GstGL-1.0.gir b/gir-files/GstGL-1.0.gir index ae1ebda32..e72653c4d 100644 --- a/gir-files/GstGL-1.0.gir +++ b/gir-files/GstGL-1.0.gir @@ -927,7 +927,7 @@ function to allocate and OpenGL resources needed for your application - + generic faliure @@ -2212,7 +2212,7 @@ MT-safe - + OpenGL context errors. Failed for an unspecified reason @@ -4242,7 +4242,7 @@ multiple times. This must be called before any other GstGLRenderbuffer operatio - + Compilation stage that caused an error Compilation error occured @@ -7526,7 +7526,7 @@ require this to be called with a valid handle before drawing can commence. - + failed for a unspecified reason diff --git a/gir-files/fix.sh b/gir-files/fix.sh index d87481540..9f3788827 100755 --- a/gir-files/fix.sh +++ b/gir-files/fix.sh @@ -57,3 +57,19 @@ xmlstarlet ed --pf --inplace \ --delete '//_:callback[starts-with(@name, "Check")]' \ --delete '//_:record[starts-with(@name, "Check")]' \ GstCheck-1.0.gir + +# Fix gst_gl_base_buffer_error_quark() and gst_glsl_error_quark() +xmlstarlet ed --pf --inplace \ + --update '//*[@glib:error-domain="gst-gl-base-buffer-error-quark"]/@glib:error-domain' \ + --value gst-gl-base-memory-error-quark \ + --update '//*[@glib:error-domain="gst-glsl-error"]/@glib:error-domain' \ + --value gst-glsl-error-quark \ + GstGL-1.0.gir + +# Fix error domains for GstGLContext and GstGLWindow +xmlstarlet ed --pf --inplace \ + --insert '//_:enumeration[@name="GLContextError"][not(@glib:error-domain)]' \ + --type attr -n 'glib:error-domain' --value gst-gl-context-error-quark \ + --insert '//_:enumeration[@name="GLWindowError"][not(@glib:error-domain)]' \ + --type attr -n 'glib:error-domain' --value gst-gl-window-error-quark \ + GstGL-1.0.gir