videoscale: Fix assertion on caps fixation
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 24 Feb 2011 11:42:34 +0000 (08:42 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 22 Mar 2011 18:24:01 +0000 (15:24 -0300)
commit91ed9290b880804ac479a9ddcab256494f7a31d6
tree00a97c229a812fa544c323f42d481b8413bda493
parentb41cca7f40bf6eac470d516c57d39fa2a5c65845
videoscale: Fix assertion on caps fixation

When fixating caps, from_par should always be initialized
with a fixed value.

In case the fixation is from src to sink pad it was setting
the from par (srcpad par) to a fraction range, this patch initializes
it to 1/1, based on the assumption that missing PAR is 1/1.

https://bugzilla.gnome.org/show_bug.cgi?id=641952
gst/videoscale/gstvideoscale.c