From dfe8595da0d55b42cb96fb0f8668e00e7aee665d Mon Sep 17 00:00:00 2001 From: tomas Date: Wed, 23 Feb 2005 17:52:54 +0000 Subject: [PATCH] assumedFormat parameter 'mp3' added to analyze() method. --- livesupport/modules/storageServer/var/RawMediaData.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/livesupport/modules/storageServer/var/RawMediaData.php b/livesupport/modules/storageServer/var/RawMediaData.php index 868768422..33a44c039 100644 --- a/livesupport/modules/storageServer/var/RawMediaData.php +++ b/livesupport/modules/storageServer/var/RawMediaData.php @@ -23,7 +23,7 @@ Author : $Author: tomas $ - Version : $Revision: 1.7 $ + Version : $Revision: 1.8 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/RawMediaData.php,v $ ------------------------------------------------------------------------------*/ @@ -146,7 +146,10 @@ class RawMediaData{ function analyze() { if(!$this->exists) return FALSE; - $ia = GetAllFileinfo($this->fname); + //$ia = GetAllFileinfo($this->fname); + //if(!isset($ia['mime_type']) || $ia['mime_type']==''){ + $ia = GetAllFileinfo($this->fname, 'mp3'); + //} return $ia; } @@ -159,7 +162,8 @@ class RawMediaData{ { $a = $this->analyze(); if($a === FALSE) return $a; - return $a['mime_type']; + if(isset($a['mime_type'])) return $a['mime_type']; + return ''; } /**