videomixer: Don't return caps in get_caps() that will be rejected
authorEdward Hervey <bilboed@bilboed.com>
Thu, 3 Jun 2010 16:58:42 +0000 (18:58 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 3 Jun 2010 17:01:14 +0000 (19:01 +0200)
commitd72a2fb6da94989122d8005d8c674bef6371ad04
treebe9794ba600effd37d08ad2407b549922cb7c5ce
parent5072c47624009384afedbc2b87886687a891111a
videomixer: Don't return caps in get_caps() that will be rejected

This commit basically puts _get_caps() in sync with accept_caps().

If we don't have a master pad OR the master pad caps aren't negotiated
then we just return the downstream allowed caps.

If we have a master pad with negotiated caps, we return those caps
with a free range of width/height/framerate
gst/videomixer/videomixer.c