We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c179abd + a0f1296 commit 2f09960Copy full SHA for 2f09960
src/org/freedesktop/gstreamer/lowlevel/GValueAPI.java
@@ -162,8 +162,14 @@ public Object getValue() {
162
} else if (g_type.equals(GType.STRING)) { return toJavaString();
163
// } else if (g_type.equals(GType.OBJECT)) { return toObject();
164
} else if (g_type.equals(GType.POINTER)) { return toPointer();
165
+ } else if (g_type.getParentType().equals(GType.BOXED)) {
166
+ Class<? extends NativeObject> cls = GstTypes.classFor(g_type);
167
+ if (cls != null) {
168
+ Pointer ptr = GVALUE_API.g_value_get_boxed(this);
169
+ return NativeObject.objectFor(ptr, cls, 1, true);
170
+ }
171
}
- return GVALUE_API.g_value_get_object(this);
172
+ return GVALUE_API.g_value_get_object(this);
173
174
175
public Integer toInt() {
0 commit comments