From c12bd5d807a5d21cea5be56cf22649f65b9fe9d5 Mon Sep 17 00:00:00 2001 From: Vikram Fugro Date: Sat, 19 Sep 2015 16:57:26 +0530 Subject: [PATCH] gst: Documentation typo fix in caps & pad APIs gst_caps_can_intersect() & GST_PAD_IS_ACCEPT_INTERSECT() documentation typo fix. https://bugzilla.gnome.org/show_bug.cgi?id=755257 --- gst/gstcaps.c | 2 +- gst/gstpad.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 6acc564fc3..a8722da0c7 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -1446,7 +1446,7 @@ gst_caps_can_intersect (const GstCaps * caps1, const GstCaps * caps2) len1 = GST_CAPS_LEN (caps1); len2 = GST_CAPS_LEN (caps2); for (i = 0; i < len1 + len2 - 1; i++) { - /* superset index goes from 0 to sgst_caps_structure_intersectuperset->structs->len-1 */ + /* superset index goes from 0 to superset->structs->len-1 */ j = MIN (i, len1 - 1); /* subset index stays 0 until i reaches superset->structs->len, then it * counts up from 1 to subset->structs->len - 1 */ diff --git a/gst/gstpad.h b/gst/gstpad.h index 157d147b77..5f9311285d 100644 --- a/gst/gstpad.h +++ b/gst/gstpad.h @@ -1117,7 +1117,7 @@ struct _GstPadClass { * @pad: a #GstPad * * Check if the pad's accept intersect flag is set. The default accept-caps - * handler will check it the caps intersect the query-caps result instead of + * handler will check if the caps intersect the query-caps result instead of * checking for a subset. This is interesting for parser elements that can * accept incompletely specified caps. */