Browse Source

Dash: C++ sanitization

pull/2/head
Jean-Baptiste Kempf 15 years ago
parent
commit
476935e1d4
  1. 1
      modules/stream_filter/dash/adaptationlogic/IDownloadRateObserver.h
  2. 5
      modules/stream_filter/dash/http/Chunk.cpp
  3. 1
      modules/stream_filter/dash/http/IHTTPConnection.h
  4. 4
      modules/stream_filter/dash/mpd/BaseUrl.h
  5. 3
      modules/stream_filter/dash/mpd/BasicCMParser.cpp
  6. 1
      modules/stream_filter/dash/mpd/IMPDManager.h
  7. 1
      modules/stream_filter/dash/mpd/IMPDParser.h
  8. 1
      modules/stream_filter/dash/mpd/ISegment.h

1
modules/stream_filter/dash/adaptationlogic/IDownloadRateObserver.h

@ -33,6 +33,7 @@ namespace dash
{
public:
virtual void downloadRateChanged(long bpsAvg, long bpsLastChunk) = 0;
virtual ~IDownloadRateObserver(){}
};
}
}

5
modules/stream_filter/dash/http/Chunk.cpp

@ -29,9 +29,10 @@
using namespace dash::http;
Chunk::Chunk()
{
Chunk::Chunk() : url()
{
startByte = endByte = 0;
}
Chunk::~Chunk()
{

1
modules/stream_filter/dash/http/IHTTPConnection.h

@ -37,6 +37,7 @@ namespace dash
public:
virtual int read (void *p_buffer, size_t len) = 0;
virtual int peek (const uint8_t **pp_peek, size_t i_peek) = 0;
virtual ~IHTTPConnection() {}
};
}
}

4
modules/stream_filter/dash/mpd/BaseUrl.h

@ -34,10 +34,10 @@ namespace dash
class BaseUrl
{
public:
BaseUrl (std::string url) { this->url = url; }
BaseUrl (const std::string& url) : url(url) {}
virtual ~BaseUrl() {}
std::string getUrl() { return this->url; }
const std::string& getUrl() const { return this->url; }
private:
std::string url;

3
modules/stream_filter/dash/mpd/BasicCMParser.cpp

@ -30,9 +30,8 @@
using namespace dash::mpd;
using namespace dash::xml;
BasicCMParser::BasicCMParser (Node *root)
BasicCMParser::BasicCMParser (Node *root) : root(root), mpd(NULL)
{
this->root = root;
}
BasicCMParser::~BasicCMParser ()
{

1
modules/stream_filter/dash/mpd/IMPDManager.h

@ -32,6 +32,7 @@ namespace dash
virtual Representation* getBestRepresentation (Period *period) = 0;
virtual std::vector<ISegment *> getSegments (Representation *rep) = 0;
virtual Representation* getRepresentation (Period *period, long bitrate) = 0;
virtual ~IMPDManager(){}
};
}
}

1
modules/stream_filter/dash/mpd/IMPDParser.h

@ -36,6 +36,7 @@ namespace dash
public:
virtual bool parse () = 0;
virtual MPD* getMPD () = 0;
virtual ~IMPDParser(){}
};
}
}

1
modules/stream_filter/dash/mpd/ISegment.h

@ -37,6 +37,7 @@ namespace dash
{
public:
virtual std::string getSourceUrl() throw(dash::exception::AttributeNotPresentException) = 0;
virtual ~ISegment(){}
};
}
}

Loading…
Cancel
Save