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() {
162162 } else if (g_type .equals (GType .STRING )) { return toJavaString ();
163163// } else if (g_type.equals(GType.OBJECT)) { return toObject();
164164 } 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+ }
165171 }
166- return GVALUE_API .g_value_get_object (this );
172+ return GVALUE_API .g_value_get_object (this );
167173 }
168174
169175 public Integer toInt () {
You can’t perform that action at this time.
0 commit comments