gstreamer-java / gst1-java-core

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

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

Closed lafoletc closed 4 years ago

lafoletc commented 4 years ago

g_type_name returns null for GType.INVALID

neilcsmith-net commented 4 years ago

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

lafoletc commented 4 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 4 years ago

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