[vlmc-devel] AudioSample: Use class definition than struct

Rohit Yadav git at videolan.org
Wed Feb 29 16:06:46 CET 2012


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Wed Feb 29 20:46:03 2012 +0530| [fcc0d8c5c921628cc0afac5f8c38fb0c625e3219] | committer: Rohit Yadav

AudioSample: Use class definition than struct
AudioSample is declared and used as a class. Fixes warning by clang++.

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

 src/Workflow/AudioClipWorkflow.h |    2 +-
 src/Workflow/Types.h             |   17 +++++++++--------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/Workflow/AudioClipWorkflow.h b/src/Workflow/AudioClipWorkflow.h
index 667ffa7..74ef31e 100644
--- a/src/Workflow/AudioClipWorkflow.h
+++ b/src/Workflow/AudioClipWorkflow.h
@@ -30,7 +30,7 @@
 
 namespace Workflow
 {
-    struct  AudioSample;
+    class  AudioSample;
 }
 
 class   AudioClipWorkflow : public ClipWorkflow
diff --git a/src/Workflow/Types.h b/src/Workflow/Types.h
index 90b8b76..780bcab 100644
--- a/src/Workflow/Types.h
+++ b/src/Workflow/Types.h
@@ -90,15 +90,16 @@ namespace   Workflow
             quint32     m_size;
             quint32     m_nbPixels;
     };
-    struct  AudioSample : public OutputBuffer
+    class  AudioSample : public OutputBuffer
     {
-        AudioSample() : OutputBuffer( AudioTrack ){}
-        unsigned char*  buff;
-        size_t          size;
-        quint32         nbSample;
-        quint32         nbChannels;
-        qint64          ptsDiff;
-        qint64          pts;
+        public:
+            AudioSample() : OutputBuffer( AudioTrack ){}
+            unsigned char*  buff;
+            size_t          size;
+            quint32         nbSample;
+            quint32         nbChannels;
+            qint64          ptsDiff;
+            qint64          pts;
     };
 }
 



More information about the Vlmc-devel mailing list