vividsnow <vivids...@gmail.com>: > try Glib::Object::Introspection::GValueWrapper like here: > https://gist.github.com/vividsnow/06e8eb21165d6f01a8bf#file-gstreamer-video-test-pl-L17
Exactly. See [1] for a short explanation. You would probably make those people happy that try to port from GStreamer to GStreamer1 if you try to emulate the old caps API, as tested in GStreamer/t/GstCaps.t. On the other hand, I just realized that you might be able to automatically determine the type information via GStreamer1::Structure::get_field_type [2], which would allow you to get rid of the type argument. [1] <https://metacpan.org/pod/Glib::Object::Introspection#Converting-a-Perl-variable-to-a-GValue> [2] <https://developer.gnome.org/gstreamer/stable/gstreamer-GstStructure.html#gst-structure-get-field-type> _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list