Skip to content

Show a not-null name in toString() for GType.INVALID #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 29, 2020

Conversation

lafoletc
Copy link
Contributor

g_type_name returns null for GType.INVALID

@neilcsmith-net
Copy link
Member

Why?! This seems like a bad idea to me. What's it fixing?

@lafoletc
Copy link
Contributor Author

when the toString() is invoked on GType.INVALID, the g_type_name() returns NULL : we can't know that we are using a bad GType.
this PR help to debug

@neilcsmith-net
Copy link
Member

OK, in that case, consider changing toString() itself instead.

@neilcsmith-net neilcsmith-net merged commit 79e0c5f into gstreamer-java:master Oct 29, 2020
@neilcsmith-net neilcsmith-net changed the title Return a not-null name for GType.INVALID Show a not-null name in toString() for GType.INVALID Nov 4, 2020
@neilcsmith-net neilcsmith-net added this to the 1.3 milestone Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants