plugins: find the preferred format from right caps.
When the downstream has any caps, then raw video feature will be used. At this situation, the preferred format should be chose from caps which contains "vide/x-raw" feature instead of from the fist allowed caps.
Fixes #142 (closed)