[vlmc-devel] Media: setFileType -> computeFileType

Hugo Beauzée-Luyssen git at videolan.org
Mon Sep 3 23:51:00 CEST 2012


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Sep  3 23:47:14 2012 +0300| [8ff89d342331da21aa698e6b900f6f8dd4bd60df] | committer: Hugo Beauzée-Luyssen

Media: setFileType -> computeFileType

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=8ff89d342331da21aa698e6b900f6f8dd4bd60df
---

 src/Media/Media.cpp |    4 ++--
 src/Media/Media.h   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Media/Media.cpp b/src/Media/Media.cpp
index 3695d59..b3724ef 100644
--- a/src/Media/Media.cpp
+++ b/src/Media/Media.cpp
@@ -89,7 +89,7 @@ Media::~Media()
 }
 
 void
-Media::setFileType()
+Media::computeFileType()
 {
     const QString filter = "*." + m_fileInfo->suffix().toLower();
     if ( Media::VideoExtensions.contains( filter ) )
@@ -294,7 +294,7 @@ Media::setFilePath( const QString &filePath )
         delete m_fileInfo;
     m_fileInfo = new QFileInfo( filePath );
     m_fileName = m_fileInfo->fileName();
-    setFileType();
+    computeFileType();
     if ( m_fileType != Media::Image )
         m_mrl = "file:///" + QUrl::toPercentEncoding( filePath, "/" );
     else
diff --git a/src/Media/Media.h b/src/Media/Media.h
index 46ff828..210872c 100644
--- a/src/Media/Media.h
+++ b/src/Media/Media.h
@@ -160,7 +160,7 @@ public:
     void                        computeMetadata();
 
 private:
-    void                        setFileType();
+    void                        computeFileType();
 
 protected:
     LibVLCpp::Media*            m_vlcMedia;



More information about the Vlmc-devel mailing list