summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2002-03-17 23:58:17 +0000
committerBenjamin Otte <otte@gnome.org>2002-03-17 23:58:17 +0000
commit9be26b515250bbe9cce2fba9ca546edce1b83cef (patch)
treeeefa58808104e9fc86a4087b09e8a69f63a7a294
parentc8f59fe1965b5073c8ffd32091de1e817fffb56c (diff)
bugfix for gst_element_request_pad_by_name returning NULL even though a template was available
Original commit message from CVS: bugfix for gst_element_request_pad_by_name returning NULL even though a template was available
-rw-r--r--gst/gstelement.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstelement.c b/gst/gstelement.c
index 840c8643c6..102481356d 100644
--- a/gst/gstelement.c
+++ b/gst/gstelement.c
@@ -580,6 +580,7 @@ gst_element_get_padtemplate_by_name (GstElement *element, const guchar *name)
while (padlist) {
GstPadTemplate *padtempl = (GstPadTemplate*) padlist->data;
+ /* hi, please use me to get your buffer overflow */
if (!strcmp (padtempl->name_template, name))
return padtempl;
@@ -718,6 +719,7 @@ gst_element_request_pad_by_name (GstElement *element, const gchar *name)
if (strstr (name, "%d")) {
templ = gst_element_get_padtemplate_by_name (element, name);
+ templ_found = (templ != NULL);
req_name = NULL;
} else {
list = gst_element_get_padtemplate_list(element);