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 723652 - missing documentation of GST_PAD_SET_PROXY_CAPS
missing documentation of GST_PAD_SET_PROXY_CAPS
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: documentation
git master
Other All
: Normal minor
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-05 08:12 UTC by showayb.zahda
Modified: 2014-04-26 23:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add documentation in some macros (11.04 KB, patch)
2014-03-15 04:26 UTC, Felipe Ortiz
needs-work Details | Review
Patch to add documentation for some macros (9.73 KB, patch)
2014-03-27 03:16 UTC, Felipe Ortiz
needs-work Details | Review
This patch for gstpad.h and gstreamer-sections.txt (12.39 KB, patch)
2014-03-27 03:50 UTC, Felipe Ortiz
committed Details | Review

Description showayb.zahda 2014-02-05 08:12:55 UTC
I tried to find the documentation of GST_PAD_SET_PROXY_CAPS in devhelp or google, and i failed to see it.
Comment 1 Tim-Philipp Müller 2014-02-05 23:09:35 UTC
Thanks for the bug report, this should definitely be fixed.

If you feel adventurous or bored, you could make a patch yourself, by getting a checkout of gstreamer and modifying the file gst/gstpad.h - it needs a gtk-doc comment block above the #define GST_PAD_SET_PROXY that's similar to the stuff in GstPadFlags (just simpler, without the @ lines).

And then the GST_PAD_SET_PROXY_CAPS in docs/gst/gstreamer-sections.txt needs to be moved from the 'Standard' subsection up above the '<SUBSECTION Standard>'.
Comment 2 Felipe Ortiz 2014-03-02 18:01:32 UTC
Hi, does this should be done for all macros in this section?
Comment 3 Sebastian Dröge (slomo) 2014-03-03 08:49:16 UTC
Yes
Comment 4 Felipe Ortiz 2014-03-15 04:26:43 UTC
Created attachment 271985 [details] [review]
Patch to add documentation in some macros
Comment 5 Felipe Ortiz 2014-03-15 04:28:08 UTC
Comment on attachment 271985 [details] [review]
Patch to add documentation in some macros

I made a patch with the required documentation, but I find two problems

1) I don't know how I should modify gstreamer-sections.txt

2) I can't find documentation about four macros:
GST_PAD_BLOCK_GET_COND
GST_PAD_BLOCK_WAIT
GST_PAD_BLOCK_SIGNAL
GST_PAD_BLOCK_BROADCAST

If someone can help me it would be great :)

Please review my patch and tell me if it need some corrections.
Comment 6 Sebastian Dröge (slomo) 2014-03-15 11:52:06 UTC
(In reply to comment #5)
> (From update of attachment 271985 [details] [review])
> I made a patch with the required documentation, but I find two problems
> 
> 1) I don't know how I should modify gstreamer-sections.txt

You manually add the symbols there, there's nothing to do it automatically.
 
> 2) I can't find documentation about four macros:
> GST_PAD_BLOCK_GET_COND
> GST_PAD_BLOCK_WAIT
> GST_PAD_BLOCK_SIGNAL
> GST_PAD_BLOCK_BROADCAST

I think those should not be in the docs at all, they should not really be used outside of gstpad.c.
Comment 7 Sebastian Dröge (slomo) 2014-03-15 11:56:39 UTC
Review of attachment 271985 [details] [review]:

Looks good mostly, thanks for the patch :)

::: gst/gstpad.h
@@ +755,3 @@
+ * @pad: a #GstPad
+ *
+ * Get parent element.

It's not necesarily an element, it could also be another pad or something completely different. Also mention that no locking happens here

@@ +801,3 @@
+ *
+ * Get the @pad activation function (#GstPadActivateFunction).
+ * This function is called when the pad is activated during the element

Instead of explaining all these functions here I think you can just link to the docs of the GstPadActivateFunction and the others

@@ +875,3 @@
+ * @pad: a #GstPad
+ *
+ * Return the pad's peer memeber. This memeber is a pointer to the linked @pad.

Typo (memeber) and mention that no locking happens here
Comment 8 Felipe Ortiz 2014-03-27 03:16:40 UTC
Created attachment 273050 [details] [review]
Patch to add documentation for some macros
Comment 9 Felipe Ortiz 2014-03-27 03:50:31 UTC
Created attachment 273051 [details] [review]
This patch for gstpad.h and gstreamer-sections.txt
Comment 10 Reynaldo H. Verdejo Pinochet 2014-04-04 21:59:10 UTC
Review of attachment 273050 [details] [review]:

Hi Felipe. Thanks for taking care of this. Just a few nits:

::: gst/gstpad.h
@@ +771,3 @@
+ * @pad: a #GstPad
+ *
+ * Get the @pad #GstPadTemplate. It describe the possible media types

describes

@@ +837,3 @@
+ *
+ * Get the #GstPadEventFunction from the given @pad.
+ * This is the function handle an event for the pad.

This function will handle the pad's events
Or, closer to your version:
This is the function handling events for the pad

@@ +881,3 @@
+ * @pad: a #GstPad
+ *
+ * Return true if the @pad direction is equals to GST_PAD_SRC.

Drop the "is"

@@ +888,3 @@
+ * @pad: a #GstPad
+ *
+ * Return true if the @pad direction is equals to GST_PAD_SINK

Drop the "is"

@@ +952,3 @@
+ *
+ * Check if the @pad should be reconfigured/renegotiated.
+ * The flag has to be unset manually after reconfiguration happened.

manually unset

@@ +966,3 @@
+ * @pad: a #GstPad
+ *
+ * Check if the given @pad is using fixed caps this means that

. This means ..

@@ +981,3 @@
+ * @pad: a #GstPad
+ *
+ * Check if the given @pad is set as proxy caps this meas that the default

as/to
. This
meas/means

@@ +1004,3 @@
+ * @pad: a #GstPad
+ *
+ * Check if the given @pad is set as proxy allocation this means

as/to
. This

@@ +1027,3 @@
+ * @pad: a #GstPad
+ *
+ * Check if the given @pad is proxy scheduling this means that the

proxying maybe, but I'd rather phrase it like the above ones
. This
Comment 11 Tim-Philipp Müller 2014-04-26 16:09:20 UTC
Thanks for the patches! I've pushed this now, with typos fixed (but I got a bit carried away and fleshed it out a little here and there, so apologies if I introduced more in your name). Sorry it took so long.

 commit d17438d5fd321daec4adbeb28a8fb5d5e07298dc
 Author: Showayb Zahda <showayb.zahda@axis.com>
 Date:   Sat Apr 26 17:02:18 2014 +0100

    docs: add docs for various GstPad macros
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723652
Comment 12 Tim-Philipp Müller 2014-04-26 16:09:30 UTC
Comment on attachment 273051 [details] [review]
This patch for gstpad.h and gstreamer-sections.txt

Pushed with changes.
Comment 13 Tim-Philipp Müller 2014-04-26 16:10:24 UTC
PS: it would be great if you could provide a patch in 'git format-patch' format next time, that makes it easier for us to apply and saves us the typing of your name, e-mail and the commit message.
Comment 14 Felipe Ortiz 2014-04-26 21:35:40 UTC
Ok, for the next time I use the 'git format-patch' and thanks for fix the typos
Comment 15 Tim-Philipp Müller 2014-04-26 22:08:48 UTC
Hrm, it looks like I actually attributed the patch to the wrong person. I'm very sorry Felipe!
Comment 16 Tim-Philipp Müller 2014-04-26 23:27:50 UTC
Fixed now.
Comment 17 Felipe Ortiz 2014-04-26 23:28:55 UTC
Thanks!