Round video/audio duration

This commit is contained in:
Romain Neutron
2012-05-23 13:14:03 +02:00
parent 4a1e3cc9db
commit 093efd73b6

View File

@@ -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;