GNOME Bugzilla – Bug 754567
video: gst_video_calculate_display_ratio() should have out parameter
Last modified: 2015-10-20 07:18:01 UTC
as dar_n and dar_d is a pointer it should use out parameter to return the calculated uint c documentation http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#gst-video-calculate-display-ratio while in vapi it isn't out parameter http://valadoc.org/#!api=gstreamer-video-1.0/Gst.Video.calculate_display_ratio I've successfully add the out in the vapi files, but Flo said it might be bad gir file.
It's indeed missing annotations in the C code: https://github.com/gstreamer-mirror/gst-plugins-base/blob/19d714fa2f95f67c9ad94db7c359a1c7affe40d4/gst-libs/gst/video/video.c#L64 I think it should be something like: * @dar_n: (out) (allow-none): Numerator of the calculated display_ratio * @dar_d: (out) (allow-none): Denominator of the calculated display_ratio Reassigning to gstreamer.
They're actually not allow-none, but yes. Thanks for reporting :) commit df0d5aa4d52a53af95fc185fbb9b83aee149d033 Author: Sebastian Dröge <sebastian@centricular.com> Date: Sat Oct 17 20:36:27 2015 +0300 video: Add out annotations to the out parameters of gst_video_calculate_display_ratio() https://bugzilla.gnome.org/show_bug.cgi?id=754567