Original commit message from CVS: - Added PAD_NEGOTIATING flag, remove PAD_EOS flag - Try to avoid negotiation in state change if pad were already negotiating - Added gstquery.c for completeness (maybe merge common functions with gstformat.c?)