summaryrefslogtreecommitdiff
path: root/src/modules/emotion/libvlc
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-08 19:12:41 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-08 19:12:41 +0900
commita510349d0062face695ee4ba1cc34e0e6ff2d369 (patch)
treef6f88ce4eaae6e0d26a564a81fd46d6519b90ea0 /src/modules/emotion/libvlc
parent4354712ccb30f995ecf57345074e31c2d2a78134 (diff)
emotion vlc module - fix potential divide by 0
fix CID 1357146
Diffstat (limited to 'src/modules/emotion/libvlc')
-rw-r--r--src/modules/emotion/libvlc/emotion_libvlc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/emotion/libvlc/emotion_libvlc.c b/src/modules/emotion/libvlc/emotion_libvlc.c
index 3c7345169a..c029edf86d 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)
711 int num = 0, den = 0; 711 int num = 0, den = 0;
712 712
713 em_fps_num_den_get(video, &num, &den); 713 em_fps_num_den_get(video, &num, &den);
714 return num / (double)den; 714 if (den > 0) return num / (double)den;
715 return 0.0;
715} 716}
716 717
717static void 718static void