Commit fcc0d8c5 authored by Rohit Yadav's avatar Rohit Yadav

AudioSample: Use class definition than struct

AudioSample is declared and used as a class. Fixes warning by clang++.
parent df089c31
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
namespace Workflow namespace Workflow
{ {
struct AudioSample; class AudioSample;
} }
class AudioClipWorkflow : public ClipWorkflow class AudioClipWorkflow : public ClipWorkflow
......
...@@ -90,15 +90,16 @@ namespace Workflow ...@@ -90,15 +90,16 @@ namespace Workflow
quint32 m_size; quint32 m_size;
quint32 m_nbPixels; quint32 m_nbPixels;
}; };
struct AudioSample : public OutputBuffer class AudioSample : public OutputBuffer
{ {
AudioSample() : OutputBuffer( AudioTrack ){} public:
unsigned char* buff; AudioSample() : OutputBuffer( AudioTrack ){}
size_t size; unsigned char* buff;
quint32 nbSample; size_t size;
quint32 nbChannels; quint32 nbSample;
qint64 ptsDiff; quint32 nbChannels;
qint64 pts; qint64 ptsDiff;
qint64 pts;
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment