fix issue in error generator and add gif-encoder example

This commit is contained in:
tinyzimmer
2020-10-04 17:09:02 +03:00
parent 8e7663ef20
commit 084e997cec
2 changed files with 232 additions and 0 deletions

View File

@@ -186,6 +186,7 @@ func getErrorMessageParams(err *GError, debugStr string) (*C.GError, *C.gchar) {
gerr := &C.GError{
code: C.gint(err.code),
message: (*C.gchar)(unsafe.Pointer(errStr)),
domain: C.guint(err.code),
}
return gerr, (*C.gchar)(unsafe.Pointer(gdebugStr))