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