mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
5c778e25a5
commit
e6de18ea99
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue