File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/org/freedesktop/gstreamer/lowlevel Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,14 @@ public Object getValue() {
162
162
} else if (g_type .equals (GType .STRING )) { return toJavaString ();
163
163
// } else if (g_type.equals(GType.OBJECT)) { return toObject();
164
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
+ }
165
171
}
166
- return GVALUE_API .g_value_get_object (this );
172
+ return GVALUE_API .g_value_get_object (this );
167
173
}
168
174
169
175
public Integer toInt () {
You can’t perform that action at this time.
0 commit comments