forbid copy of ogg::Stream and ogg::Decoder

realize they cause serious memory issues
now adding a Stream to the vector doesn't typecheck…
This commit is contained in:
Frédéric Mangano
2016-03-01 16:03:11 +01:00
parent 8364667b4c
commit 0e3dfbe381

View File

@ -30,6 +30,7 @@ namespace ogg
struct Stream
{
Stream(int streamno);
Stream(const Stream&) = delete;
~Stream();
// Called by Decoder once a page was read.
@ -71,6 +72,7 @@ namespace ogg
struct Decoder
{
Decoder(std::istream&);
Decoder(const Decoder&) = delete;
~Decoder();
// Read a page, dispatch it, and return the stream it belongs to.