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
This commit is contained in:
Bastien Nocera 2011-01-28 19:08:08 +00:00 committed by Tim-Philipp Müller
parent 5c778e25a5
commit e6de18ea99

View file

@ -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;