Re: Porting perl-GStreamer to gst 1.0
- From: "Torsten Schönfeld" <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Porting perl-GStreamer to gst 1.0
- Date: Thu, 20 Nov 2014 09:46:32 +0100
vividsnow <vividsnow 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]