aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2016-01-09 21:03:02 -0800
committerMartijn Kaijser <martijn@xbmc.org>2016-01-09 21:03:02 -0800
commit10597e3b22e8207a133e25d74651fa7a53bbce13 (patch)
tree12607c759b1f92879dbeaae5ef513680e3cf57cb
parent68a37d2da1873b67e37924a74912ab3850fe334f (diff)
parentc93c7e492b2631958bcf25edbbb91f5a3924bde8 (diff)
Merge pull request #8811 from ace20022/disposal_Jarvis
[gif] Fall back to DISPOSAL_UNSPECIFIED if no valid disposal method i…
-rw-r--r--xbmc/guilib/Gif.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/guilib/Gif.cpp b/xbmc/guilib/Gif.cpp
index 1e5792d82d..9f85d4001f 100644
--- a/xbmc/guilib/Gif.cpp
+++ b/xbmc/guilib/Gif.cpp
@@ -512,8 +512,9 @@ bool Gif::PrepareTemplate(GifFrame &frame)
}
default:
{
- CLog::Log(LOGDEBUG, "Gif::PrepareTemplate(): Unknown disposal method: %d", frame.m_disposal);
- return false;
+ CLog::Log(LOGDEBUG, "Gif::PrepareTemplate(): Unknown disposal method: %d. Using DISPOSAL_UNSPECIFIED, the animation might be wrong now.", frame.m_disposal);
+ frame.m_disposal = DISPOSAL_UNSPECIFIED;
+ return PrepareTemplate(frame);
}
}
return true;