From 50c98bae24c30c5c5d7c47dc4f7740a50ebbd585 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 28 Feb 2017 15:39:27 +0200 Subject: [PATCH] framepositioner: Prevent division by zero CID 1369046 CID 1369047 --- ges/gstframepositioner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ges/gstframepositioner.c b/ges/gstframepositioner.c index 8acb700..e294768 100644 --- a/ges/gstframepositioner.c +++ b/ges/gstframepositioner.c @@ -101,6 +101,7 @@ gst_frame_positioner_update_properties (GstFramePositioner * pos, if (old_track_width && pos->width == old_track_width && old_track_height && pos->height == old_track_height && + pos->track_height && pos->track_width && ((float) old_track_width / (float) old_track_height) == ((float) pos->track_width / (float) pos->track_height)) { -- 2.7.4