moved decoders to shared ptrs

This commit is contained in:
itsmattkc
2019-08-09 07:46:53 +10:00
parent 6833b18829
commit 7a858aeca3
4 changed files with 27 additions and 46 deletions
+4 -3
View File
@@ -28,6 +28,9 @@
#include "project/item/footage/footage.h"
#include "decoder/frame.h"
class Decoder;
using DecoderPtr = std::shared_ptr<Decoder>;
/**
* @brief A decoder's is the main class for bringing external media into Olive
*
@@ -185,7 +188,7 @@ public:
*
* A Decoder instance or nullptr if a Decoder with this ID does not exist
*/
static Decoder* CreateFromID(const QString& id);
static DecoderPtr CreateFromID(const QString& id);
protected:
bool open_;
@@ -194,6 +197,4 @@ private:
const Stream* stream_;
};
using DecoderPtr = std::shared_ptr<Decoder>;
#endif // DECODER_H