aboutsummaryrefslogtreecommitdiffstats
path: root/tools/with-session-bus.sh
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-05-20 22:12:57 +0800
committerXavier Claessens <xclaesse@gmail.com>2010-05-26 17:54:01 +0800
commit4ba1a8de87f108ad073e388711c4d6b05009851e (patch)
treea98a1d4400f6b96ea29f8023aa3fb540043d7f79 /tools/with-session-bus.sh
parent1ea03406fc359c1623909ff6705c9c67b0e0c30b (diff)
downloadgsoc2013-empathy-4ba1a8de87f108ad073e388711c4d6b05009851e.tar
gsoc2013-empathy-4ba1a8de87f108ad073e388711c4d6b05009851e.tar.gz
gsoc2013-empathy-4ba1a8de87f108ad073e388711c4d6b05009851e.tar.bz2
gsoc2013-empathy-4ba1a8de87f108ad073e388711c4d6b05009851e.tar.lz
gsoc2013-empathy-4ba1a8de87f108ad073e388711c4d6b05009851e.tar.xz
gsoc2013-empathy-4ba1a8de87f108ad073e388711c4d6b05009851e.tar.zst
gsoc2013-empathy-4ba1a8de87f108ad073e388711c4d6b05009851e.zip
Make sure to not infinite loop when scaling avatar.
1) Add a limit of 10 retries, to be sure to never do more in the worst case. 2) Only keep converted data that respect the requirements, make sure to not accept bigger data than maximum_bytes, even if it is close to the limit. 3) Stop the loop if the new factor does not change the image resolution. That means we already found the optimal size. Fixes bug #619701
Diffstat (limited to 'tools/with-session-bus.sh')
0 files changed, 0 insertions, 0 deletions