diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2010-05-20 22:12:57 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2010-05-26 17:54:01 +0800 |
commit | 4ba1a8de87f108ad073e388711c4d6b05009851e (patch) | |
tree | a98a1d4400f6b96ea29f8023aa3fb540043d7f79 /libempathy-gtk/empathy-sound.h | |
parent | 1ea03406fc359c1623909ff6705c9c67b0e0c30b (diff) | |
download | gsoc2013-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 'libempathy-gtk/empathy-sound.h')
0 files changed, 0 insertions, 0 deletions