caps: move the check to the public api.
authorStefan Kost <ensonic@users.sf.net>
Wed, 3 Mar 2010 21:37:01 +0000 (23:37 +0200)
committerStefan Kost <ensonic@users.sf.net>
Mon, 15 Mar 2010 09:17:22 +0000 (11:17 +0200)
commit1ca450ba5cbf25537ded5f44305aad32096ac292
tree4e9c5afa28e10714a8ffdaa7a7339340921db936
parent43a4763491208e83c28ba31a118ba5887061f9ad
caps: move the check to the public api.

This avoids creating empty caps and destroying them in the case of an error. We
also avoid double checking in other code path where we call the internal api.
gst/gstcaps.c