After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 764414 - GST_VIDEO_FORMAT_INFO* macros have wrong parameters specified.
GST_VIDEO_FORMAT_INFO* macros have wrong parameters specified.
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: documentation
unspecified
Other Linux
: Normal normal
: 1.9.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-31 13:34 UTC by zingmars
Modified: 2016-04-02 14:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
video-format: Fix macro documentation (1.98 KB, patch)
2016-03-31 17:34 UTC, Nicolas Dufresne (ndufresne)
committed Details | Review

Description zingmars 2016-03-31 13:34:52 UTC
Example - https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#GST-VIDEO-FORMAT-INFO-PSTRIDE:CAPS

According to the doc all of the GST_VIDEO_INFO macros accept a GstVideoInfo, when in reality they take a GstVideoFormatInfo.
Comment 1 Nicolas Dufresne (ndufresne) 2016-03-31 16:19:37 UTC
(In reply to zingmars from comment #0)
> Example -
> https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-
> libs/html/gst-plugins-base-libs-gstvideo.html#GST-VIDEO-FORMAT-INFO-PSTRIDE:
> CAPS
> 
> According to the doc all of the GST_VIDEO_INFO macros accept a GstVideoInfo,
> when in reality they take a GstVideoFormatInfo.

You provide GST_VIDEO_FORMAT_INFO_* macro as an example of GST_VIDEO_INFO_* with the wrong parameter. Are you sure about what you are reporting?
Comment 2 zingmars 2016-03-31 16:28:08 UTC
(In reply to Nicolas Dufresne (stormer) from comment #1)
> (In reply to zingmars from comment #0)
> > Example -
> > https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-
> > libs/html/gst-plugins-base-libs-gstvideo.html#GST-VIDEO-FORMAT-INFO-PSTRIDE:
> > CAPS
> > 
> > According to the doc all of the GST_VIDEO_INFO macros accept a GstVideoInfo,
> > when in reality they take a GstVideoFormatInfo.
> 
> You provide GST_VIDEO_FORMAT_INFO_* macro as an example of GST_VIDEO_INFO_*
> with the wrong parameter. Are you sure about what you are reporting?

Oh wow, I made the same typo, twice. Fixed the title.

But yeah, I was talking about GST_VIDEO_FORMAT_INFO_* macros. Apologies.
Comment 3 Nicolas Dufresne (ndufresne) 2016-03-31 17:17:40 UTC
Ok, and I see what you mean. It's documentation bug, it's sad, nearly none of these macro are documented, and we have the wrong structure name for those that are. Are you in progress of proposing a patch ?
Comment 4 zingmars 2016-03-31 17:20:29 UTC
I'm new to GStreamer and the way things are done around here in general, so I would have no idea where to start. If someone could point me in the right direction, I wouldn't have a problem with helping though.
Comment 5 Nicolas Dufresne (ndufresne) 2016-03-31 17:34:38 UTC
Created attachment 325102 [details] [review]
video-format: Fix macro documentation

The parameter type was wrongly documenting that a GstVideoInfo structure
pointer was needed, while it needs a GstVideoFormatInfo structure
pointer.
Comment 6 Nicolas Dufresne (ndufresne) 2016-03-31 17:38:08 UTC
Was as fast to just do it this time. Basically, you checkout the git repository (in this case it's git.freedesktop.org/git/gstreamer/gst-plugins-base). Then you make the required changes (in this case it's documentation found in comment blocks) and commit it to your local git repository. You then generate a patch using git format-patch -1 and attach it to a bug. You may also use git-bz as I did.

Was there any other similar error you may have notice ?
Comment 7 zingmars 2016-03-31 17:54:32 UTC
So far I'm yet to come accross similar errors, but I did find a page that has a lot of broken links in it (see https://bugzilla.gnome.org/show_bug.cgi?id=764407). Is that issue just as easy to fix or..?
Comment 8 Nicolas Dufresne (ndufresne) 2016-03-31 17:57:55 UTC
It's a different issue.
Comment 9 Nicolas Dufresne (ndufresne) 2016-03-31 18:18:36 UTC
Attachment 325102 [details] pushed as a7809ec - video-format: Fix macro documentation
Comment 10 Tim-Philipp Müller 2016-04-02 14:21:21 UTC
commit 9e311960cdbb4805a6c76cefdf7eebb2802ae8ce
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Sat Apr 2 15:19:44 2016 +0100

    video: fix example code in gst_video_frame_map() docs
    
    GST_VIDEO_FRAME_PLANE_PSTRIDE() does not exist.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764414