gstreamer-java / gst1-java-core

Java bindings for GStreamer 1.x
GNU Lesser General Public License v3.0
188 stars 72 forks source link

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

Closed lafoletc closed 3 years ago

lafoletc commented 3 years ago

g_type_name returns null for GType.INVALID

neilcsmith-net commented 3 years ago

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

lafoletc commented 3 years ago

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 commented 3 years ago

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