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 @@
namespace Workflow
{
struct AudioSample;
class AudioSample;
}
class AudioClipWorkflow : public ClipWorkflow
......
......@@ -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;
};
}
......
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