class CDVDCodecOption
{
public:
- CDVDCodecOption(std::string name, std::string value) { m_name = name; m_value = value; }
+ CDVDCodecOption(const std::string& name, const std::string& value) : m_name(name), m_value(value) {}
std::string m_name;
std::string m_value;
};
{
public:
- CDVDOverlayCodec(const char* name)
- {
- m_codecName = name;
- }
+ CDVDOverlayCodec(const char* name) : m_codecName(name) {}
virtual ~CDVDOverlayCodec() {}
class CDVDMsgPlayerSetState : public CDVDMsg
{
public:
- CDVDMsgPlayerSetState(std::string& state) : CDVDMsg(PLAYER_SET_STATE) { m_state = state; }
+ CDVDMsgPlayerSetState(std::string& state) : CDVDMsg(PLAYER_SET_STATE), m_state(state) {}
std::string GetState() { return m_state; }
private:
std::string m_state;
using namespace std;
-CDVDMessageQueue::CDVDMessageQueue(const string &owner) : m_hEvent(true)
+CDVDMessageQueue::CDVDMessageQueue(const string &owner) : m_hEvent(true), m_owner(owner)
{
- m_owner = owner;
m_iDataSize = 0;
m_bAbortRequest = false;
m_bInitialized = false;
: public CDVDSubtitleParser
{
public:
- CDVDSubtitleParserCollection(const std::string& strFile)
- {
- m_filename = strFile;
- }
+ CDVDSubtitleParserCollection(const std::string& strFile) : m_filename(strFile) {}
virtual ~CDVDSubtitleParserCollection() { }
virtual CDVDOverlay* Parse(double iPts)
{
: CThread("COMXPlayerVideo")
, m_messageQueue("video")
, m_messageParent(parent)
+, m_codecname("")
{
m_av_clock = av_clock;
m_pOverlayContainer = pOverlayContainer;
m_hdmi_clock_sync = false;
m_speed = DVD_PLAYSPEED_NORMAL;
m_stalled = false;
- m_codecname = "";
m_iSubtitleDelay = 0;
m_FlipTimeStamp = 0.0;
m_bRenderSubs = false;
#define MAX_TEXT_LENGTH 1024
-COMXVideo::COMXVideo()
+COMXVideo::COMXVideo() : m_video_codec_name("")
{
m_is_open = false;
m_Pause = false;
m_extradata = NULL;
m_extrasize = 0;
m_video_convert = false;
- m_video_codec_name = "";
m_deinterlace = false;
m_hdmi_clock_sync = false;
m_drop_state = false;