aspectratiocrop: Handle resolution changes properly
authorAndrei Sarakeev <sarakusha@gmail.com>
Wed, 26 Nov 2014 07:33:09 +0000 (10:33 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 28 Nov 2014 10:19:23 +0000 (11:19 +0100)
commit6348de195d1e29d43518b21a19659e852177e9f2
tree66e80eafd7534cc685ca854648f9a2955f7c6466
parentf2f16636779aa9e24dde0baaa82d2f01dd73d822
aspectratiocrop: Handle resolution changes properly

When an caps-event is received, we must immediately change the crop
to videocrop correctly changed caps-event dimension, otherwise the
videocrop will first use the previous value of the crop that when
resizing video to a smaller resolution may cause an error.

https://bugzilla.gnome.org/show_bug.cgi?id=740671
gst/videocrop/gstaspectratiocrop.c
gst/videocrop/gstaspectratiocrop.h