diff --git a/gst/gstelement.c b/gst/gstelement.c index 99c5d19eb8..e55a8d3a8e 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -986,7 +986,6 @@ gst_element_get_request_pad (GstElement * element, const gchar * name) const gchar *req_name = NULL; gboolean templ_found = FALSE; GList *list; - gint n; const gchar *data; gchar *str, *endptr = NULL; GstElementClass *class; @@ -1027,7 +1026,7 @@ gst_element_get_request_pad (GstElement * element, const gchar * name) data = name + (str - templ->name_template); if (*(str + 1) == 'd') { /* it's an int */ - n = (gint) strtol (data, &endptr, 10); + strtol (data, &endptr, 10); if (endptr && *endptr == '\0') { templ_found = TRUE; req_name = name; diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 9fb42df5f9..ec3ac3c792 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -2559,8 +2559,6 @@ null_buffer: GST_ELEMENT_ERROR (src, STREAM, FAILED, (_("Internal data flow error.")), ("element returned NULL buffer")); GST_LIVE_UNLOCK (src); - /* we finished the segment on error */ - ret = GST_FLOW_ERROR; goto done; } }