From 093efd73b6c9ed1d1f2f0c719d5f701fc29eeb79 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Wed, 23 May 2012 13:14:03 +0200 Subject: [PATCH] Round video/audio duration --- lib/classes/record/adapter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/record/adapter.class.php b/lib/classes/record/adapter.class.php index 0a57d7ab66..f5e8117fef 100644 --- a/lib/classes/record/adapter.class.php +++ b/lib/classes/record/adapter.class.php @@ -455,7 +455,7 @@ class record_adapter implements record_Interface, cache_cacheableInterface public function get_duration() { if ( ! $this->duration) { - $this->duration = $this->get_technical_infos(media_subdef::TC_DATA_DURATION); + $this->duration = round($this->get_technical_infos(media_subdef::TC_DATA_DURATION)); } return $this->duration;