Regression, return -1 when no features can be found

Original commit message from CVS:
Regression, return -1 when no features can be found
This commit is contained in:
Johan Dahlin 2004-05-23 18:41:25 +00:00
parent 2e1ff49925
commit df7b9dc725

View file

@ -1015,7 +1015,8 @@ print_element_features (const gchar * element_name)
return 0;
}
#endif
return 0;
return -1;
}
int
@ -1045,7 +1046,6 @@ main (int argc, char *argv[])
/* only search for a factory if there's not a '.so' */
if (!strstr (argv[1], ".so")) {
factory = gst_element_factory_find (argv[1]);
/* if there's a factory, print out the info */
if (factory) {
GstElement *element;