mirror of
https://github.com/fmang/opustags.git
synced 2025-07-09 10:55:10 +02:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user