raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=a510349d0062face695ee4ba1cc34e0e6ff2d369
commit a510349d0062face695ee4ba1cc34e0e6ff2d369 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Fri Jul 8 19:12:41 2016 +0900 emotion vlc module - fix potential divide by 0 fix CID 1357146 --- src/modules/emotion/libvlc/emotion_libvlc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/emotion/libvlc/emotion_libvlc.c b/src/modules/emotion/libvlc/emotion_libvlc.c index 3c73451..c029edf 100644 --- a/src/modules/emotion/libvlc/emotion_libvlc.c +++ b/src/modules/emotion/libvlc/emotion_libvlc.c @@ -711,7 +711,8 @@ em_fps_get(void *video) int num = 0, den = 0; em_fps_num_den_get(video, &num, &den); - return num / (double)den; + if (den > 0) return num / (double)den; + return 0.0; } static void --
