summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2011-01-28 19:08:08 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-01-28 19:59:56 +0000
commite6de18ea99d14336b01c4afc44a2ac47a35447c1 (patch)
treeec7ac6a68d7ec117f8071980213e337f144e45a7
parent5c778e25a538def05da61bcd7eed6aa8584bce19 (diff)
GstElement: Fix warning with GCC 4.6
gstelement.c: In function ‘gst_element_get_request_pad’: gstelement.c:1052:18: error: variable ‘tmp’ set but not used [-Werror=unused-but-set-variable] https://bugzilla.gnome.org/show_bug.cgi?id=640850
-rw-r--r--gst/gstelement.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/gstelement.c b/gst/gstelement.c
index f92841c399..e37af7c755 100644
--- a/gst/gstelement.c
+++ b/gst/gstelement.c
@@ -1053,7 +1053,8 @@ gst_element_get_request_pad (GstElement * element, const gchar * name)
/* it's an int */
tmp = strtol (data, &endptr, 10);
- if (endptr && *endptr == '\0') {
+ if (tmp != G_MINLONG && tmp != G_MAXLONG && endptr &&
+ *endptr == '\0') {
templ_found = TRUE;
req_name = name;
break;